Specifications
7. Application Instructions
© DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
7-66
S
1
: UNIT ADDRESS. The usage range is K0~K255.
S
2
: FUNCTION CODE. For example: the command of AC drive or
DVP-PLC to read many items is H03. Write command of AC drive or
DVP-PLC is H06 and the command of write many items is H10.
S
3
: device address that being read/write data, inner device address
of connection device. If address is illegal to the assigned equipment,
there will be fault code save in D1130 and at the same time, M1141 will
be ON. For example, 4000H is illegal to VFD-S, M1141 will be ON and
D1130 = 2. Please refer to VFD-S for fault code.
S
3
: device address of being read/write
S
4
: source or destination of being read/write. User can set register
to write data length in advance or save data after reading.
n
: read/write data length. Assigned range K1~K16(WORD).
Program Example 1:
Ϩʳ Function code K3(H3): read many items data.
1. PLC connects to VFD-S AC drive. (ASCII Mode when M1143=OFF)
2. PLC connects to VFD-S AC drive. (ASCII Mode when M1143=ON)
Ϩʳ Receiving data saves in 16 continuous registers that start from D0 with
ASCII form when in ASCII mode. PLC will convert the content to
Hexadecimal and save into registers D1296~D1311 automatically.
M1131=ON when it starts converting to hexadecimal and M1131 will be
OFF after finishing converting.
Ϩʳ User can MOV, DMOV or BMOV commands to move D1296~D1311
that save hexadecimal data to general register to use. Other command
is invalid to this area.
Ϩʳ Received data saves in the 16 continuous registers that starts from D0
and designated by users in hexadecimal type in RTU mode. At the
same time, D1296~D1311 is invalid.
Ϩʳ In ASCII mode or RTU mode, PLC will save the transmission data in
D1256~D1295. Users can move these register data to general register
by MOV, DMOV or BMOV commands. Other commands are invalid to
this area.
Ϩʳ Data, return from AC drive, is saved in registers that designate by
users. After finishing, PLC will check if the received data is correct
automatically. If having faults, M1140 will be set to ON.
Ϩʳ Inner data address of AC drive. If address is illegal to assigned
equipment, it will have fault code. Fault code will be saved in D1130
and M1141 will be on. For example, 4000H is illegal to VFD-S and
M1141=ON and D1130=2. Please refer to VFD-S user manual to fault
code.
Ϩʳ After M1140= ON or M1141=ON, it will transmit a correct data to AC
drive. If return data is correct, M1140 and M1141 will be reset.