EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-F FX5 - Page 30

Mitsubishi Electric MELSEC iQ-F FX5
44 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
28
4 SERIAL COMMUNICATION FB
4.3 M+FX5UCPU-SerialComm_Output
Error code
*1 When the same self-diagnosis error as another instruction occurs in this FB, this FB may not detect the error.
Timing chart of I/O signals [When the operation is completed with an error]
Module error (Serial communication error) <ch1 example>
Restrictions or precautions 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."
Error code (hexadecimal) Description Action
100H 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.
Try again after checking the setting.
102H 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.
Try again after checking the setting.
103H The serial communication operation mode is set to an unavailable
mode.
The serial communication operation mode is not set to "Non-
protocol communication".
Try again after checking the setting.
Serial communication error The contents are same as the error code occurred in the serial
communication (RS2) instruction.
Refer to the MELSEC iQ-F FX5 User's Manual
(Serial Communication)
Self-diagnostics error This error may occur in the serial communication (RS2)
instruction.
*1
Refer to the MELSEC iQ-F FX5 User's Manual
(Application)
Item Description
i_bEN
o_bENO
Sending
Error code0H
Serial data transfer
SM8561 (ch1 send request)
o_bOK
o_bErr
SM8500 (ch1 communication error)
o_uErrId

Other manuals for Mitsubishi Electric MELSEC iQ-F FX5

Related product manuals