Call 123: write to remote df1 plc data file – Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 324

Advertising
background image

Chapter
Call Routines 69–127

13

13 -66

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

Use CALL 123 to write up to 63 words of data from BTW buffer and/or a
string within the BASIC module to remote DF1 node (PLC-2

, -3

, or -5

processor). The table lists specific notes when using CALL 123 with the
PLC-3 and PLC-5 processors.

PLC processor

Notes

for timers and counters, the file number PUSHed (third
parameter) is the structure number, limited to a maximum of
255 words

3

input and output files cannot be accessed with this CALL.
Choosing these file types will cause a 2 (bad input parameter)
to be popped

5

for timer data, an element is three 16-bit words, stored in the
source file in the following order: Control, Preset, and
Accumulator

If you choose an internal string, the first character (transaction number)
increments upon a successful write transaction to inform the BASIC
module that string data was written to the PLC processor. The value of the
transaction number wraps around from 255 to 0. If you perform a
block-transfer the first word is reserved.

Set up the DF1 port parameters are set up with CALL 108 (page 13 -38).
DF1 port can operate with either full-duplex or half-duplex slave protocol.

Execute CALL 123 once to set up the data transfer parameters. Input
image table bit 13 and output image table bit 13 are used to initiate and
notify completion of the transfer. Input image table bit 4 is used to notify
the PLC that the DF1 status is available.

1.

The local PLC processor ladder logic builds a file with DF1 data.

PLC Processor

Build DF1 Data File

CALL 123: Write to Remote
DF1 PLC Data File

Advertising