User`s manual

17
12.3 Handling Transparent Codes and Additional Codes during Non Procedure Protocol Data
Communication. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299
12.4 Example of Data Communication Using the Non Procedure Protocol . . . . . . . . . . . . . . . . . . 304
12.4.1 Example of data reception . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .305
12.4.2 Example of data transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .307
12.5 Handling Transparent Codes and Additional Codes During Bidirectional Protocol Data
Communication. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
12.6 Example of Data Communication Using the Bidirectional Protocol . . . . . . . . . . . . . . . . . . . . 313
12.6.1 Example of data reception . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .314
12.6.2 Example of data transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .317
CHAPTER 13 COMMUNICATING WITH ASCII CODE (ASCII-BIN CONVERSION) 319
13.1 ASCII-BIN Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
13.2 Settings for ASCII-BIN Conversion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320
13.3 Performing ASCII-BIN Conversion for Data Communicated via Non Procedure Protocol . . . 321
13.4 Example of Data Communication Using the Non Procedure Protocol . . . . . . . . . . . . . . . . . . 323
13.4.1 Example of data reception . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .324
13.4.2 Example of data transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .327
13.5 Performing ASCII-BIN Conversion for Data Communicated via the Bidirectional Protocol . . 329
13.6 Example of Data Communication Using the Bidirectional Protocol . . . . . . . . . . . . . . . . . . . . 331
13.6.1 Example of data reception . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .332
13.6.2 Example of data transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .333
CHAPTER 14 DATA COMMUNICATIONS USING EXTERNAL DEVICE AND
PROGRAMMABLE CONTROLLER CPU M : N CONFIGURATION 334
14.1 Data Communications Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334
14.2 External Devices Interlock Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336
14.2.1 Maximum communications time per external device station . . . . . . . . . . . . . . . . . . . . . . . . .336
14.2.2 Message structure when communicating data between external devices . . . . . . . . . . . . . . .337
14.3 Examples of Procedure for Data Communications with the Programmable Controller CPU
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339
14.3.1 Sequential data communications between external devices and the programmable
controller CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .339
14.3.2 Data communications between programmable controller CPU and external devices
by designating a master station and slave stations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .342
CHAPTER 15 SWITCHING THE MODE AFTER STARTING 345
15.1 Mode Switching Operation and Contents that can be Changed. . . . . . . . . . . . . . . . . . . . . . . 347
15.1.1 Settings that can be changed with mode switching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .347
15.1.2 Operation for mode switching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .348
15.2 Mode Switching Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .349
15.3 I/O Signals for Handshake with Programmable Controller CPU and Buffer Memory . . . . . . . 350
15.4 Switching the Mode from the Programmable Controller CPU . . . . . . . . . . . . . . . . . . . . . . . . 354
15.4.1 Mode switching procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .354
15.4.2 Mode switching sample program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .355