B–8
RLL Communications Programs
Data Communications Module, 2nd Edition, 2/03
D3–330 / D3–340 CPUs
To get ...
TMR/CNT Current Values
use...
TMR / CNT Status Bits
use...
Data Registers
use...
R600
V0
CT600
GY600
1
R401, R400
2
V100
R601
V1
CT601
GY601
1
R403, R402
2
V101
— — —
— — —
— — —
— — —
— — —
— — —
R677
V77
CT677
GY677
1
R777, R776
2
V237
To get ...
g
I/O Points
use...
Control Relays
use...
Shift Registers
use...
IO 000
GY0
1
CR160
GY160
1
SR400
GY400
IO 001
GY1
1
CR161
GY161
1
SR401
GY401
— — —
— — —
— — —
— — —
— — —
— — —
IO 157
GY157
1
CR377
GY377
1
SR577
GY577
D3–330P CPUs
To get ...
TMR/CNT Current Values
use...
TMR / CNT Status Bits
use...
Data Registers
use...
R600
V0
CT600
GY600
1
R401, R400
2
V100
R601
V1
CT601
GY601
1
R403, R402
2
V101
— — —
— — —
— — —
— — —
— — —
— — —
R677
V77
CT677
GY677
1
R777, R776
2
V237
To get ...
g
I/O Points
use...
Control Relays
use...
Shift Registers
use...
IO 000
GY0
1
CR160
GY160
1
SR200
GY400
IO 001
GY1
1
CR161
GY161
1
SR201
GY401
— — —
— — —
— — —
— — —
— — —
— — —
IO 157
GY157
1
CR277
GY277
1
SR277
GY477
To get ...
Stage Status Bits
use...
S0
GY200
1
S1
GY201
1
— — —
— — —
S177
GY277
1
1
You must have CPU firmware V1.9
.
or greater to use the GY data type
i th RX/WX i
t
ti
g
yp
in the RX/WX instructions.
2
Two bytes of DL305 register data
.
t
d
ith
DL205 V
y
g
are returned with one DL205 V
memory location.
To get R400,
use V100
Example:
Read current value from R400
into memory location V2000.
If you’re just obtaining I/O or
Timer/Counter values, the task is
fairly simple. But when you work
with data registers, it’s a bit more
involved. Here’s why.
To get R400, you examine the
table and find that you must use
reference V0. You will also notice
that you always get at least 2
registers! So you get R400
and
R401. Since you only want the
contents of R400, you have to
add some ladder logic to get rid of
the data from R401.
LDA
O2000
LD
K2
LD
K201
RX
V100
Read 2
bytes
Store in
V2000
OUT
Vxxxx
ANDD
KFF
LD
V2000
Use ANDD
to remove
R401
Store the
result in a
different V
location
Load
V2000
Summary of Contents for D2-DCM
Page 4: ...D2 DCM Data Communications Module Manual Number D2 DCM M...
Page 37: ...1A Cable Diagrams...
Page 47: ...Data Communications Module 2nd Edition 2 03 B RLL Communications Programs...
Page 58: ...Data Communications Module 2nd Edition 2 03 C Using the D2 DCM with MODBUS...
Page 67: ...Data Communications Module 2nd Edition 2 03 D Using the D2 DCM with Modems...