![Automation Direct D0-DCM Скачать руководство пользователя страница 48](http://html1.mh-extra.com/html/automation-direct/d0-dcm/d0-dcm_manual_3021736048.webp)
Getting Started
User Application
Guidelines
RLL
Programming
for Communications
4–10
RLL Programming for Communications
DL05/06 Data Communications Module, 1st Edition, 08/05
OUT
Y0
C0
In our example, the normally open contact
labeled C0 is an internal control relay.
When C0 is on, discrete output Y0 is
energized.
SET
SP123
Y1
The second rung uses a Special Relay to
identify a communication error. In the
example, SP123 is on if a communication
error is present for slot two. Use different
Special Relays if your DCM module is in a
different slot (see page 4-8). We use
SP123 to turn on an indicator light
connected to a discrete output.
LD
K214
LD
K2
LDA
O40600
RX
VC100
SP122
The Special Relay labeled SP122 is on
when slot 2 is busy transmitting or
receiving. The Read instruction may take
longer than one PLC scan to complete. Use
this Special Relay to prevent overwriting the
previous Read instruction with each PLC
scan.
Number of bytes to be transferred.
Max = 128 bytes.
Beginning address in the in master PLC,
expressed as an octal number.
Beginning address in the slave PLC.
2
1 4
0
Slave # (Hex)
K
Upper Byte
Lower Byte
Slave PLC
Master PLC
DCM Slot #
END
All DirectLOGIC PLCs use an END
statement to identify the final rung of the
main body of the program.
END
OUT
C100
X0
This two-rung program resides in the slave
PLC’s CPU. Its function is simply to use
the X0 contact to turn on the internal
control relay, C100.
Program for the
Master PLC:
Rung 1
Rung 2
Rung 3
Rung 4
Program for the
Slave PLC
Содержание D0-DCM
Страница 1: ...D0 DCM Data Communications Module Manual Number D0 DCM M...
Страница 8: ......
Страница 9: ...1 1 Introduction In This Chapter Manual Overview D0 DCM Hardware Features D0 DCM Applications...
Страница 24: ......
Страница 56: ......
Страница 57: ...1 5 D0 DCM Using MODBUSr RTU In This Chapter Network Slave Operation Network Master Operation...