Mitsubishi Electric MELSEC iQ-F FX5 Reference Manual page 24

Cpu module function block reference
Hide thumbs Also See for MELSEC iQ-F FX5:
Table of Contents

Advertisement

4.2
M+FX5UCPU-SerialComm_Input
Name
M+FX5UCPU-SerialComm_Input
Overview
Item
Overview
Symbol
Labels
■Input label
No.
Variable name
(1)
i_bEN
(2)
i_stModule
(3)
i_uCh
(4)
i_uMaxRecvData
*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
No.
Variable name
(5)
o_bENO
(6)
o_bOK
(7)
o_bErr
(8)
o_uErrId
(9)
o_uRecvDataLength
(10)
o_uRecvData
*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.
4 SERIAL COMMUNICATION FB
22
4.2 M+FX5UCPU-SerialComm_Input
Description
This FB stores the data received using the non-protocol in serial communication.
M+FX5UCPU-SerialComm_Input
(1)
B
:
i_bEN
(2)
DUT
:
i_stModule
(3)
UW
:
i_uCh
(4)
UW : i_uMaxRecvData
(11) pb_bSerialComErrUndetection
Name
Data type
Execution command
Bit
Module label
Structure
Receive channel
Word [Unsigned]
Allowable number of
Word [Unsigned]
receive data points
Name
Data type
Execution status
Bit
Normal completion
Bit
Error completion
Bit
Error code
Word [Unsigned]
Number of receive
Word [Unsigned]
data points
Receive data storage
Word [Unsigned]
device
o_bENO
:
B
(5)
o_bOK
:
B
(6)
o_bErr
:
B
(7)
o_uErrId
:
UW
(8)
o_uRecvDataLength
:
UW
(9)
o_uRecvData UW
:
(10)
Range
ON, OFF
1 to 4
1 to 4096
Default value
OFF
OFF
OFF
0
0
0
Description
ON: The FB is activated.
OFF: The FB is not activated.
Specify the module label of the CPU module.
Set the channel that receives the data.
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)
Specify the allowable number of bytes of the receive
data that can be stored in the receive data storage
*1*2
device.
Description
ON: The execution command is on.
OFF: The execution command is off.
When this bit is ON, it indicates that data receiving is
completed normally.
When this label is on, it indicates that an error has
occurred in the FB.
Stores the error code occurred in the FB.
Stores the number of bytes which received the data.
Specify the head address of the device which stores the
*1*2
received data.

Advertisement

Table of Contents
loading

Table of Contents