EtherCAT Communication
‑102‑
Example
1. Write frequency (F0‑03 set to 9)
Based on the I/O mapping, you need to assign a value for DO.
The procedure is as follows (equivalent to writing a data to the address 1000H in
RS485 communication mode):
2. Start/stop control over the AC drive (F0‑02 set to 2)
Based on the I/O mapping, assign a value for D2, assign a value for the D element
corresponding to the control word of the required station number to enable the AC
drive to run forward or backward or stop. The control word is defined as follows:
1: Forward run 2: Reverse run 3: Forward jog 4: Reverse jog 5: Coast to stop 6:
Decelerate to stop 7: Fault reset
The procedure of making the AC drive run forward is as follows:
2000H corresponds to the PLC soft element address D2. When the D2 value is set to
1, the AC drive runs forward. To decelerate to stop, set D2 to 6.
3. Read bus voltage
Based on the conversion rule, convert the high bit U of the bus voltage address
U002 to 7, convert the address to a hexadecimal number and then add 1 to the
conversion result. Then, the index is 2070 and the sub‑index is 03. Based on the
communication configuration, the D element address of the bus voltage is D300.
Therefore, convert D300 to a floating‑point number and then divide the conversion
result by 10.
The procedure is as follows:
4. Read output voltage