Why does the variable "plc_ts_counter" appear in my generated PLC code?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 25 Jan. 2018
Beantwortet: MathWorks Support Team
am 28 Feb. 2018
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.
Akzeptierte Antwort
MathWorks Support Team
am 25 Jan. 2018
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink PLC Coder finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!