Call 118: plc/slc unsolicited writes – Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 310

Advertising
background image

Chapter
Call Routines 69–127

13

13 -52

Important: This call requires the BASIC module jumper JW5 to be in 16
point mode (page 1 -7).

Use CALL 118 to allow the BASIC module to receive data packets sent by
PLC-2, PLC-3, or PLC-5 message instructions on the DF1 network.
This call also sets up the BASIC module to receive data packets from an
SLC node on the DH-485 network. Both the DF1 port (PRT2) and the
DH485 port cannot be active at the same time. Use jumper JW4 (page
1 -6) on the BASIC module to select your port configuration.

Any write message instruction sent to the BASIC module from these
PLC/SLC processors causes the data to be placed in the BTR buffer and/or
the BASIC module string, starting at the designated word offset.

The low byte of word 1 of the BTR buffer contains the character count
(byte count) of the transferred data. The high byte of this word is reserved.
If you choose an internal string, the first character contains the byte count.
The second character (transaction number) of the internal string is
incremented, upon successful receipt of a packet, to inform the BASIC
module that new data is in the string. The value of this transaction number
wraps around from 255 to 0.

Execute CALL 118 once. After the call is executed, the BASIC module
checks the port at the end of each line of BASIC code.

1.

The BASIC module receives packets initiated from the PLC/SLC
processor configured in the call through either ports PRT2 or DH485.
PRT2 and DH485 ports cannot be active at the same time.

BASIC Module

PORT DH485

PORT PRT2

DH-485 Network

SLC Processor

DF1 Network

PLC Processor

CALL 118: PLC/SLC
Unsolicited Writes

Advertising