Section 3 Inverter Communication
3-2
3-2 Data Write Program
The remote data write (R_WRITE) FB is used to send data to an inverter.
(1) FB format
(2) Explanation of terminals
Note: The data to send shall be prepared in the following manner.
R_WRITE
REQ
MODULE_NO
CHANNEL_NO
STATION_NO
VAR_TYPE
REMOTE_VAR
SIZE
SD
BOOL
BOOL
INT
Array 1
Array 2
DONE
ERROR
STATUS
REMOTE_VAR
SD
BOOL
UINT
UINT
UDINT
UINT
Array 1
UINT
Array 2
Terminal name
Data type
I/O
Description
REQ
BOOL
IN
Request to send
At the rising edge of this signal, the initialization data prepared in SD is sent.
MODULE_NO
UINT
IN
RS-485 port No. designation
Fixed to UNIT#8
CHANNEL_NO
UINT
IN
Communication type code
Designates the type of communication. Fixed to UINT#0
STATION_NO
UDINT
IN
Sets the RS-485 station No. of the inverter. (1 to 255)
VAR_TYPE
UINT
IN
Variable specification method
Fixed to UINT#1
REMOTE_VAR
Array 1
IN_OUT
Address specification
2-word UINT type array variable is connected.
Enters "function code" of the inverter in the first word and "write No." in the second
word.
SIZE
UINT
IN
Send data size Designates the size of send data by the number of words.
SD
Array 2
IN_OUT
Send data
The data to send is prepared. Maximum 82 bytes (43 words) of data can be sent.
(see note)
DONE
BOOL
OUT
Normal end Set ON for one scan period when the data is successfully sent.
ERROR
BOOL
OUT
Transmission error Set ON for one scan period if transmission error occurred.
STATUS
INT
OUT
Status
The content of occurred transmission error is indicted by a code.
For details, refer to "3-4 Error Code".
N <= 86
Format of prepared send data (SD)
No. of send data bytes
Data 2
Send data size
(SIZE)
Data 1
Data 4
Data 3
Data N
Data N-1
0
F