Example read/write program, Ać47 – Rockwell Automation 1771-DA,D17716.5.13 U MNL 1771-DA ASCII I/O MODULE User Manual

Page 215

Advertising
background image

ASCII Module

PLC-2 Family Processors

Appendix A

AĆ47

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 NO TAG.

Figure A.20

Example Read/Write Program

I0001

00

WO005:0000

00

MOV
MOVE FROM A TO R
A : WO0001:0000
0000000000000000
R : WO0002: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

Example Read/Write Program

Advertising