18
4 SERIAL COMMUNICATION FB
4.1 M+FX5UCPU-SerialComm_InputOutput
4 SERIAL COMMUNICATION FB
4.1 M+FX5UCPU-SerialComm_InputOutput
Name
M+FX5UCPU-SerialComm_InputOutput
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.
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 CPU module.
(3) i_uCh Communication
channel
Word [Unsigned] 1 to 4 Specify the send/receive 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] 0 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
(6) i_bSendReq Send request Bit ON, OFF ON: Request data sending
OFF: Not request data sending
(7) i_uMaxRecvData Allowable number of
receive data points
Word [Unsigned] 0 to 4096 Specify the allowable number of bytes of receive data
that can be stored in the receive data storage device.
*1*2
(12)
(11)
(14)
(13)
(10)
(9)
M+FX5UCPU-SerialComm_InputOutput
(8)
(3)
(2)
(1)
(5)
(4)
(6)
(7)
o_uErrId
o_bErr
o_bRecvComp
o_bSendComp
o_bENO
UW
B
B
B
B
UW
DUT
B
:
:
o_uRecvData
o_uRecvDataLength
UW
UW
:
:
:
:
:
:
:
:
i_uCh
i_stModule
UW
UW
:
:
i_uSendData
i_uSendDataLength
B : i_bSendReq
UW : i_uMaxRecvData
(15) pb_bSerialComErrUndetection
i_bEN