Kaiyi — 8.5 Quick Start

Chapter 8 Serial Communication Module AH10SCM  Triggering the reading/writing of data Users can use the instruction TO in ISPSoft to trigger the reading of data from bit devices/word devices, and the writing of data into bit devices/word devices. (CR#7, CR#8, CR#17, and CR#18) If users want to continually trigger the reading of data from word devices, they can write 2 into CR#7. If users wan to trigger the reading of data from word devices once, they can write 1 into CR#7. After M0 is triggered, a present value can be read into D100 in a CPU module through COM1 on AHSCM-5A. The value of bit0 in D0 is 1.

8-27 CR# Attribute Register name Description 7 R/W Triggering the reading of data through COM1 High byte: Reading data from bit devices Low byte: Reading data from word devices 0: Not triggering it 1: Triggering it once 2: Always triggering it 17 R/W Triggering the reading of data through COM2 High byte: Reading data from bit devices Low byte: Reading data from word devices 0: Not triggering it 1: Triggering it once 2: Always triggering it 8 R/W Triggering the writing of data through COM1 High byte: Writing data into bit devices Low byte: Writing data into word devices 0: Not triggering it 1: Triggering it once 2:

Always triggering it 18 R/W Triggering the writing of data through COM2 High byte: Writing data into bit devices Low byte: Writing data into word devices 0: Not triggering it 1: Triggering it once 2: Always triggering it