Chapter 3 Programming
3 – 51
3.16.5 Programming
I/O addresses of slaves are displayed in “EtherCAT I/O Mapping” tab as below. Enter any variable names in this
table and create your program as same way as other standard I/Os.
When PLC is powered up with RUN switch position in RUN, I/O refresh of EtherCAT slaves starts about a few
second (depending on slave units) after I/O refresh of standard I/O started because of configuration between
EtherCAT master and all slaves as below. If this delay is not accepted, use a special bit register
“EtherCAT_Master.xConfigFinished”, which turns on when EtherCAT configuration is finished. The below codes
are sample program in ST.
Sample program