ladder-logic

How do I use system time as a trigger in codesys ladder?

强颜欢笑 提交于 2020-07-20 04:18:11
问题 Programming a raspberry pi with codesys, using mostly ladder, basically I need to write all data that is currently in a couple arrays to a csv file at midnight, so i'd like to be able to use a dt value as a trigger. I can't figure out how to use that value in ladder, however. I can display the local time on visualizer, but if i wanted something like "if localTime=#value" then coil 'Write' turns on, where is the actual variable for system time? 回答1: As far as I know, you need to read the clock