26
4 SERIAL COMMUNICATION FB
4.3 M+FX5UCPU-SerialComm_Output
4.3 M+FX5UCPU-SerialComm_Output
Name
M+FX5UCPU-SerialComm_Output
Overview
Labels
■Input label
*1 The data storage position in the word device varies depending on the 8-bit/16-bit mode setting.
*2 The number of required word devices varies depending on the 8-bit/16-bit mode setting.
■Output label
Item Description
Overview This FB sends the specified number of data points using the non-protocol in serial communication.
Symbol
No. Variable name Name Data type Range Description
(1) i_bEN Execution command Bit ON, OFF ON: The FB is activated.
OFF: The FB is not activated.
(2) i_stModule Module label Structure Specify the module label of the MELSEC iQ-F CPU
module.
(3) i_uCh Send channel Word [Unsigned] 1 to 4 Specify the send channel number.
FX5UC CPU does not have serial communication port
ch2.
When using this FB in FX5UC CPU, set channel to one
of ch1, ch3, ch4.
• 1: Channel 1 (CH1 side)
• 2: Channel 2 (CH2 side)
• 3: Channel 3 (CH3 side)
• 4: Channel 4 (CH4 side)
(4) i_uSendDataLength Number of send data
points
Word [Unsigned] 1 to 4096 Specify the number of bytes of the send data.
(5) i_uSendData Send data storage
device
Word [Unsigned] Available devices: D,
W, SD, SW and R
Specify the head address of the device which stores the
send data.
*1*2
No. Variable name Name Data type Default value Description
(6) o_bENO Execution status Bit OFF ON: The execution command is on.
OFF: The execution command is off.
(7) o_bOK Normal completion Bit OFF When this bit is ON, it indicates that data sending is
completed normally.
(8) o_bErr Error completion Bit OFF When this label is on, it indicates that an error has
occurred in the FB.
(9) o_uErrId Error code Word [Unsigned] 0 Stores the error code occurred in the FB.
(9)
(8)
(7)
M+FX5UCPU-SerialComm_Output
(6)
(3)
(2)
(1)
(4) o_uErrID
o_bErr
o_bOK
o_bENO
UW
B
B
B
UW
DUT
B
:
:
:
:
:
:
:
i_uCh
i_stModule
UW : i_uSendDataLength
(5) UW : i_uSendData
i_bEN
(10) pb_bSerialComErrUndetection