Mitsubishi Electric MELSEC iQ-F FX5 Reference Manual page 30

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

Advertisement

Item
Timing chart of I/O signals
Restrictions or precautions
Error code
Error code (hexadecimal)
100H
102H
103H
Serial communication error
Self-diagnostics error
*1 When the same self-diagnosis error as another instruction occurs in this FB, this FB may not detect the error.
4 SERIAL COMMUNICATION FB
28
4.3 M+FX5UCPU-SerialComm_Output
Description
[When the operation is completed with an error]
Module error (Serial communication error) <ch1 example>
i_bEN
o_bENO
o_bOK
SM8561 (ch1 send request)
Serial data transfer
SM8500 (ch1 communication error)
o_bErr
o_uErrId
• This FB does not include the error recovery processing. Program the error recovery processing separately in accordance
with the required system operation.
• This FB cannot be used in an interrupt program.
• This FB uses the serial communication (RS2) instruction.
• Do not use this FB in programs that are executed only once, such as a subroutine program or FOR-NEXT loop, because
i_bEN (Execution command) cannot be turned off and the normal operation cannot be acquired. Always use this FB in
programs that can turn off i_bEN (Execution command).
• When switching the "M+FX5UCPU-SerialComm_InputOutput" FB, "M+FX5UCPU-SerialComm_Input" FB, "M+FX5UCPU-
SerialComm_Output" FB (this FB), and RS2 instruction using a same communication channel, turn OFF unused target FBs
and RS2 instruction for at least 1 scan.
• This FB uses the index register Z9. When using an interrupt program, do not use this index register in the interrupt program.
• When using an interrupt program, use the DI/EI instruction before and after executing this FB so that this FB is executed in
the interrupt disabled status. If executing this FB in the interrupt enabled status, a self-diagnosis error that occurs in an
interrupt program is detected as an error that occurred in the FB.
• The following FB does not support full-duplex bi-directional communication, interlink mode, communication using control
line. To perform full-duplex bi-directional communication, interlink mode, communication using control line, please use
"M+FX5UCPU-SerialComm_InputOutput" FB.
- M+FX5UCPU-SerialComm_Input
- M+FX5UCPU-SerialComm_Output (this FB)
• Turn off i_bEN (Execution command) after o_bOK (Normal completion) or o_bErr (Error completion) is turned on. By turning
off i_bEN (Execution command), o_bOK (Normal completion) and o_bErr (Error completion) are turned off.
• Set the module parameters of the used communication channel in GX Works3 in accordance with the application. For the
module parameter setting method, refer to the MELSEC iQ-F FX5 User's Manual (Serial Communication).
• FX5UC CPU does not have serial communication port ch2. When using this FB in FX5UC CPU, set a channel of one of ch1,
ch3, ch4.
• This FB does not support the SM/SD devices of FX3 series compatibility. When using this FB in communication channel ch1
or ch2, set the SM/SD devices of FX3 series compatibility of the module parameters of the used communication channel in
GX Works3 to "Disable."
Description
The set value of i_uCh (Send channel) is outside the setting range.
The target channel is set to a value outside the range from 1 to 4.
The set value of i_uSendDataLength (Send data length) is outside
the setting range.
The send data length is set to a value outside the range from 1 to
4,096.
The serial communication operation mode is set to an unavailable
mode.
The serial communication operation mode is not set to "Non-
protocol communication".
The contents are same as the error code occurred in the serial
communication (RS2) instruction.
This error may occur in the serial communication (RS2)
*1
instruction.
Sending
0H
Error code
Action
Try again after checking the setting.
Try again after checking the setting.
Try again after checking the setting.
Refer to the MELSEC iQ-F FX5 User's Manual
(Serial Communication)
Refer to the MELSEC iQ-F FX5 User's Manual
(Application)

Advertisement

Table of Contents
loading

Table of Contents