EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-F FX5 - Page 34

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...
32
4 SERIAL COMMUNICATION FB
4.4 M+FX5UCPU-SerialComm_ExeCommonProtocol
Error code
*1 When the same self-diagnosis error as another instruction occurs in this FB, this FB may not detect the error.
Version upgrade history
Restrictions or precautions This FB does not include error recovery processing. Program error recovery processing separately in accordance with the
required system operation.
This FB cannot be used in interrupt programs.
This FB uses the communication protocol support (SP.CPRTCL) instruction.
In communication protocol support function (predefined protocol support function), up to two channels are available to use in
one CPU module.
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 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.
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. However,
because the SP.CPRTCL instruction which is a pulse instruction in the FB is used, if a write is performed while the FB is
executed, the instruction may not be executed, and o_bOK (Normal completion) and o_bErr (Error completion) may not turn
on. If this happens, turn i_bEN (Execute command) from off to on again.
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.
Error code (hexadecimal) Description Action
100H The set value of i_uCh (Communication 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.
104H The set value for i_uNumberOfExecutions (Number of continuous
protocol executions) is outside the setting range.
The number of continuous protocol executions is set to a value
outside the range from 1 to 8.
Try again after checking the setting.
105H The serial communication operation mode is set to an unavailable
mode.
The serial communication operation mode is not set to
"communication protocol support (predefined protocol support)".
Try again after checking the setting.
Serial communication error The contents are same as the error code occurred in the
communication protocol support (SP.CPRTCL) instruction.
Refer to the MELSEC iQ-F FX5 User's Manual
(Serial Communication).
Self-diagnostics error This may occur in the communication protocol support
(SP.CPRTCL) instruction.
*1
Refer to the MELSEC iQ-F FX5 User's Manual
(Application).
Version Date Description
00A July 2015 First edition
01A May 2016 Changed so that if o_bOK (Normal completion) and o_bErr (Error completion) do not turn on, the FB
can be executed again by turning i_bEN (Execute command) from off to on.
Item Description

Other manuals for Mitsubishi Electric MELSEC iQ-F FX5

Related product manuals