17
FX Series PLC User's Manual - Data Communication Edition
Table of Contents
6. Creating Programs (RS Instruction) F-39
6.1 Checking Contents of Related Devices......................................................................................F-39
6.2 How to Use RS Instruction .........................................................................................................F-40
6.2.1 Applicable frames.......................................................................................................................F-40
6.2.2 Function and operation...............................................................................................................F-41
6.2.3 Send/receive data and amount of data.......................................................................................F-42
6.2.4 Operation when data is sent.......................................................................................................F-44
6.2.5 Operation when data is received ................................................................................................F-44
6.3 Operation of Control Line...........................................................................................................F-46
6.3.1 FX2(FX), FX2C, FX1S, FX0N, FX1N, FX1NC, and FX2N (before Ver. 2.00) PLCs......................F-46
6.3.2 FX
2N (Ver. 2.00 or later), FX3G, FX3U, FX2NC, and FX3UC PLCs ............................................F-48
6.4 Important Points in Creating Programs......................................................................................F-50
6.5 Communication Error .................................................................................................................F-50
7. Practical Program Example (RS Instruction) F-51
7.1 Example of Printing Using RS Instruction (Using RS-232C Connection)...................................F-51
8. Creating Programs (RS2 Instruction) F-53
8.1 Checking Contents of Related Devices......................................................................................F-53
8.2 How to Use RS2 Instruction .......................................................................................................F-56
8.2.1 Applicable frames.......................................................................................................................F-57
8.2.2 Function and operation...............................................................................................................F-59
8.2.3 Send/receive data and amount of data.......................................................................................F-60
8.2.4 Operation when data is sent.......................................................................................................F-62
8.2.5 Operation when data is received ................................................................................................F-62
8.2.6 Sum check code.........................................................................................................................F-65
8.3 Operation of Control Line...........................................................................................................F-66
8.4 Important Points in Creating Programs......................................................................................F-69
8.5 Communication Error .................................................................................................................F-69
9. Practical Program Example (RS2 Instruction) F-70
9.1 Example of Printing Using RS2 Instruction (Using RS-232C Connection).................................F-70
10. When Combined with Another Communication F-72
10.1 Other Communication Type Used Together ............................................................................F-72
10.2 When Combined with Programming Communication ..............................................................F-73
10.2.1 For FX2N and FX2NC PLCs......................................................................................................F-73
10.2.2 For FX
3G, FX3U and FX3UC PLCs...........................................................................................F-74
10.3 When Combined with Computer Link Communication (Only in FX3G, FX3U and FX3UC) ......F-75
10.4 When Combined with Programming Communication (FX
3U and FX3UC only)........................F-76
10.5 Using RS2 Instruction and Computer Link Communication Together (FX
3U and FX3UC only)F-77
10.6 Communication Setting Method Using Sequence Program.....................................................F-78
10.6.1 Communication setting for RS instruction ................................................................................F-78
10.6.2 Communication setting for RS2 instruction ..............................................................................F-80