G - examples of remote i/o programs, Appendix g, Examples of remote i/o programs – Rockwell Automation 57C570 AutoMax PC3000 User Manual User Manual
Page 273
Advertising

GĆ1
Appendix G
Examples of Remote I/O Programs
Scanner Initialization Program Examples
Refer to this section for BASIC and Ladder Language scanner initialization
program examples.
BASIC Program Example
1010
COMMON
RACK0_EN%
\! AB–RIO REG 512
1020
COMMON
RACK1_EN%
\! AB–RIO REG 520
1030
COMMON
SCANNER_CONTROL%
\! AB–RIO REG 768
1040
COMMON
SCANNER_RUNG@
\! AB–RIO REG 768, BIT 0
1050
COMMON
SCANNER_START@
\! AB–RIO REG 768, BIT 1
1060
COMMON
RIO_RATE%
\! AB–RIO REG 769
1070
COMMON
RIO_STATUS
\! AB–RIO REG 770
8010
RIO_RATE% = 2
\! 230 KBaud
8020
RACK0_EN% = 1
\! Enable Rack 0
8030
RACK1_EN% = 1
\! Enable Rack 1
8040
SCANNER_CONTROL% = 3
\! Sets scanner into RUN
mode and starts the
scanner
32767 END
Advertising
This manual is related to the following products: