Sample Ladder Program (EtherCAT)
● Command/Response Communications
The following sample program is used to perform replacement the current bank number.
The replacement the current bank number command (lower bytes: #8000, upper bytes: #0030) is sent to the
Displacement Sensor.
First RUN
Period Flag
DINT#16#00308000
Control Command
Completed
Execution
(E001_FLG)
condition
Control Command
Completed
(E001_FLG)
Important
Create the ladder program to control the EXE signal so that it does not turn ON while the READY signal is ON.
If not, a EXE input error will occur and the ERR signal will turn ON.
ZW User's Manual
MOVE
EN
ENO
In
Out
Command
Command Execution Bit
Execution Ready
(E001_EXE)
(E001_READY)
S
Command Execution Bit
(E001_EXE)
R
Sets the replacement the
current bank number command.
E001_Command
Turns ON Command Execution Bit.
When the control command
is completed, the Command
Execution Bit is turned OFF.
EtherCAT Connection
195