Mitsubishi Electronics FX3G User Manual

Page of 964
457
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
16.1 FNC 80 – RS / Serial Communication
11
FN
C30
-FN
C3
9
R
ota
tion and 
Shi
ft
12
FN
C40-FN
C49
D
ata O
perati
on
13
FNC
50-FNC
59
High-Speed
 
Proc
essing
14
FM
C60-FN
C69
H
andy 
In
struction
15
FN
C70-FN
C79
E
xternal
 F
X
 I/O
 
De
vice
16
FNC
80-FNC
89
External
 FX 
Dev
ice
17
FNC1
00-
FNC10
9
Dat
Transfer 2
18
FNC1
10-
FNC139
Fl
oati
ng Poi
nt
19
FNC14
0-F
N
C
149
Da
ta
 
Operation 2
20
FNC1
50-
FNC159
Pos
itioning 
Control
Related devices
→ For detailed explanation, refer to the Data Communication Edition manual.
*1.
Cleared when PLC power supply is turned from OFF to ON (in FX
3S
, FX
3G
, FX
3GC
, FX
3U
 and FX
3UC
 PLCs).
Cleared when the PLC mode is changed from STOP to RUN (in other PLCs).
*2.
Cleared in the following cases:
• When the PLC mode is changed from RUN to STOP
• When the RS instruction is not driven
*3.
Latched (battery or EEPROM backed).
*4.
Cleared when the PLC mode is changed from RUN to STOP.
System configuration
To use this instruction, it is necessary to attach one of the products shown in the table below to the main unit.
→ For the system configuration, refer to the respective PLC Hardware Edition manual.
→ For detailed explanation, refer to the Data Communication Edition manual.
Differences between the RS (FNC 80) instruction and RS2 (FNC 87) instruction
Cautions
→ For other cautions, refer to the Data Communication Edition manual.
• The RS (FNC 80) instruction can be used for ch1 only (cannot be used for ch0/ch2).
• Do not drive two or more RS (FNC 80) and/or RS2 (FNC 87) instructions for the same port at the same time.
• It is not permitted to use an "RS (FNC 80)/RS2 (FNC 87)" instruction and an "IVCK (FNC270) to IVMC (FNC275)", 
"ADPRW (FNC276)", "FLCRT (FNC300) to FLSTRD (FNC305)" instruction for the same port.
Device
Name
Device
Name
M8063
*1
Serial communication error 1
D8063
*1
Error code number of serial communication error
M8121
*2
Sending wait flag
D8120
*3
Communication format setting
M8122
*2
Sending request
D8122
*4
Remaining amount of data to be sent
M8123
*2
Receiving complete flag
D8123
*4
Amount of data already received
M8124
Carrier detection flag
D8124
Header
M8129
Time-out check flag
D8125
Terminator
M8161
*4
8-bit processing mode
D8129
*3
Time-out time setting
D8405
Communication parameter display
D8419
Operation mode display
PLC
Communication type
Option
FX
3S
RS-232C communication
FX
3G
-232-BD or FX
3U
-232ADP(-MB) (with FX
3S
-CNV-ADP)
RS-485 communication
FX
3G
-485-BD(-RJ) or FX
3U
-485ADP(-MB) (with FX
3S
-CNV-ADP)
FX
3G
RS-232C communication
FX
3G
-232-BD or FX
3U
-232ADP(-MB) (with FX
3G
-CNV-ADP)
RS-485 communication
FX
3G
-485-BD(-RJ) or FX
3U
-485ADP(-MB) (with FX
3G
-CNV-ADP)
FX
3GC
,
FX
3UC
(D,DS,DSS)
RS-232C communication
FX
3U
-232ADP(-MB) 
RS-485 communication
FX
3U
-485ADP(-MB) 
FX
3U
,
FX
3UC
-32MT-LT(-2)
RS-232C communication
FX
3U
-232-BD or FX
3U
-232ADP(-MB) (with FX
3U
-CNV-BD)
RS-485 communication
FX
3U
-485-BD or FX
3U
-485ADP(-MB) (with FX
3U
-CNV-BD)
Item
RS2
 
instruction
RS instruction
Remarks
Header size
1 to 4 characters (bytes)
Up to 1 character
(byte)
For the RS2 instruction, up to 4 characters (bytes)
can be specified as a header or terminator.
Terminator size
1 to 4 characters (bytes)
Up to 1 character
(byte)
Attachment of check 
sum
The check sum can be 
automatically attached.
The check sum should be 
attached by a user 
program.
For the RS2 instruction, the check sum can be
automatically attached to the sent and received
data.
In this case, however, make sure to use a
terminator with the communication frame to be
sent and received.
Used channel number
ch0, ch1, ch2
ch1
For the RS2 instruction:
Ch0 is available only in FX
3G
/FX
3GC
 PLCs.
Ch2 is not available in FX
3G
 PLC (14-point and
24-point type) and FX
3S
 PLC.