15
CONTENTS
Example of data transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345
CHAPTER 17 COMMUNICATING WITH ASCII CODE (ASCII-BIN CONVERSION) 347
17.1 ASCII-Binary Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
17.2 Settings for ASCII-BIN Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
17.3 ASCII-BIN Conversion for Data Communicated with Nonprocedural Protocol . . . . . . . . . . . . . . . . . . . . . 348
17.4 Data Communication Using Nonprocedural Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350
Example of data reception. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351
Example of data transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355
17.5 ASCII-BIN Conversion for Data Communicated with Bidirectional Protocol. . . . . . . . . . . . . . . . . . . . . . . 359
17.6 Data Communication Using Bidirectional Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361
Example of data reception. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362
Example of data transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364
CHAPTER 18 DATA COMMUNICATIONS BETWEEN TARGET DEVICE AND CPU
MODULE IN M:N BASIS 366
18.1 Considerations on Data Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366
18.2 Arrangement for Interlock among Target Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368
Maximum communication time per target device station. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368
Message structure when communicating data among target devices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369
18.3 Examples of Procedure for Data Communications with CPU Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371
Sequential data communications between target devices and the CPU module . . . . . . . . . . . . . . . . . . . . . . . 371
Data communications between target devices and CPU module by designating a master station and slave
stations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374
CHAPTER 19 SWITCHING THE MODE AFTER STARTING 377
19.1 Mode Switching Operation and Contents that can be Changed. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378
Settings that can be changed with mode switching. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378
Operation for mode switching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378
19.2 Considerations for Mode Switching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379
19.3 I/O Signals for Handshake with CPU Module and Buffer Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
19.4 Mode Switching Method by Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383
19.5 How to Switch Mode from Target Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385
CHAPTER 20 USING SEND/RECEIVE DATA MONITORING FUNCTION 387
20.1 Send/receive Data Monitoring Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387
Send/receive data monitoring operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388
20.2 Send/receive Data Monitoring Function Settings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390
Buffer memory for send/receive data monitoring function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391
20.3 Send/receive Data Monitoring Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394
CHAPTER 21 INDEPENDENT/LINKED OPERATION OF INTERFACE 397
21.1 Setting and Data Flow of Independent Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397
21.2 Setting and Data Flow of Interlink Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398
Setting example for MELSOFT connection via C24 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400
CHAPTER 22 PARAMETER REGISTRATION TO CPU MODULE 401