Call 123 – write to remote df1 plc data file, Call 123 – write to remote df1 plc data file -28, Purpose – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 178

Advertising
background image

Publication 1746-RM001A-US-P

12-28 Output Functions

CALL 123 – Write to
Remote DF1 PLC Data
File

Purpose

Use CALL 123 to write up to 64 words of data from the CPU output image file,
the CPU M0 file, and/or a string within the module to a remote DF1 node
(PLC-2

®

, -3

®

, or -5).

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

If an internal string is chosen, the first character (transaction number) is
incremented upon a successful write transaction to inform the module that string
data was written to the PLC. The value of the transaction number wraps around
from 255 to 0.

The DF1 port parameters are set up with CALL 108. The 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 and output
image bits (word 0, bit 11) for the slot containing the module, are used to initiate
and notify completion of the transfer. The operation is described below:

1.

1.

1.

1. The SLC processor builds the data buffer and sets output file word 0, bit 11 to

inform the module that valid data is available.

2.

2.

2.

2. The module transfers the data into the destination PLC data file.

Table 12.8 PLC Application Notes

PLC

Notes

-3

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

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.

Output File

Word 0, Bit 11

SLC Processor

SLC Backplane

BASIC or BASIC-T Module

PLC

DF1 Network

BASIC or BASIC-T Module

PORT PRT2

DATA FILE

Advertising