145
SECTION 5
Using Protocol Macros
This section describes the procedure and other information required to use protocol macros.
5-1 Overview of the Protocol Macro Functions . . . . . . . . . . . . . . . . . . . . . . . . . . 146
5-1-1 Protocol Macro Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
5-1-2 Using the Protocol Macro Function . . . . . . . . . . . . . . . . . . . . . . . . . 146
5-1-3 Protocol Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
5-2 Setup Area Allocations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
5-2-1 Setup Area Words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
5-2-2 Setup Area Allocations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
5-3 Auxiliary Area and CIO Area Allocations . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
5-3-1 Auxiliary Area Allocations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
5-3-2 CIO Area Allocations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
5-3-3 Software Switches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
5-3-4 Status Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
5-4 Using Protocol Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
5-4-1 Executing Communications Sequences . . . . . . . . . . . . . . . . . . . . . . 176
5-4-2 Ladder Program Structure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
5-4-3 Ladder Program Example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
5-5 Simple Backup Function (Backup of Protocol Macro Data) . . . . . . . . . . . . . 187
5-6 Enhanced Protocol Macro Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
5-6-1 Data Exchange Timing for Link Words . . . . . . . . . . . . . . . . . . . . . . 191
5-6-2 Clearing/Holding Contents of Reception Buffer in Full-duplex Mode 193
5-6-3 High-speed Baud Rate for Protocol Macro Mode . . . . . . . . . . . . . . 193