Why does the variable "plc_ts_counter" appear in my generated PLC code?

I am using PLC Coder to generate code. I notice that the variable "plc_ts_counter" appears several times in the generated code. I have not specified this anywhere. Where does this variable come from?
It sometimes shows up as "plc_ts_counter1" or other variations with integers appended to the end.

 채택된 답변

MathWorks Support Team
MathWorks Support Team 2018년 1월 25일

0 개 추천

The variable "plc_ts_counter" and its variations are exclusive to muli-rate models. After converting your model to a single-rate system, this variable should disappear from the generated PLC code.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink PLC Coder에 대해 자세히 알아보기

제품

릴리스

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by