Slc ladder logic – Rockwell Automation 2755-SNx Adaptascan Bar Code Readers User Manual

Page 85

Advertising
background image

5–3

Communicating with a 1746-BAS BASIC Module

Publication 2755-6.8

This section provides the SLC ladder logic program for CALL 22.
The BASIC module is located in slot 1 of the SLC chassis. The
SLC 500 processor is located in slot 0.

At rung 2.0, data is copied from the M1 file when the handshake bit
(I:1.0/8) is set by the BASIC module. The SLC processor sets the
handshake bit (O:1.0/8) once the data has been copied out of the M1
file. Setting the bit triggers the BASIC module to turn off bit I:1.0/8.
The first word of the M1 file contains the byte count and this word is
not included in the data byte count. The following ladder logic
program example has a maximum of 6 bytes of data. I:1.0/8 is the
handshake bit from the BASIC module to the SLC processor.
O:1.0/8 is the handshake bit from the SLC processor to the BASIC
module.

COPY FILE

Dest

Source

Length

COP

#N7:0

#M1:1.0

6

I:1.0

8

]

[

(

)

0:1.0

8

Rung 2:0

END

Rung 2:1

SLC Ladder Logic

Advertising