M+Fx5Ucpu-Serialcomm_Output - Mitsubishi Electric MELSEC iQ-F FX5 Reference Manual

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

Advertisement

4.3

M+FX5UCPU-SerialComm_Output

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

Advertisement

Table of Contents
loading

Table of Contents