Example read/write program, Bć22, Ascii module for plcć3 processor appendix b – Rockwell Automation 1771-DA,D17716.5.13 U MNL 1771-DA ASCII I/O MODULE User Manual

Page 244

Advertising
background image

ASCII Module

For PLCĆ3 Processor

Appendix B

B-22

WO005:0000

00

RUNG NUMBER RM13

RUNG NUMBER RM14

EOP

Initialization: Turns off rung 1 except for

1st scan at power-up

A read/write program that you can use to transfer data to and/or from
your ASCII device is presented with rung descriptions in
Figure B.11.

Figure B.11

Example Read/Write Program

00

WO005:0000

00

MOV
MOVE FROM A TO R
A : WO001:0000
0000000000000000
R : WO002:0000
0000000000000000

RUNG NUMBER RM0

Load zeros into command word 1 with

selector switch or on first scan

RUNG NUMBER RM1

WO003:0000

07

WO002:0000

07

Power-up/reset power-up initialization bit

WO003:0000

15

WO002:0000

15

WO003:0000

15

WO002:0000

15

WO005:0000

02

Status word 1 - Command word 1
read data available

RUNG NUMBER RM2

WO002:0000

15

WO005:0000

02

RUNG NUMBER RM3

WO003:0000

15

L

Status word 1 - Command word 1
read handshake

I

0001

Example Read/Write Program

Advertising