7–10 Application Examples
Publication
17476.6 - July 1996
Scanner Configuration
The baud rate is 115.2K. DIP switch 1 should be in the ON position;
DIP switch 2 should be OFF.
The G file size is set to 3 using the Specialty I/O Configuration
function. The M0 and M1 file sizes are set to 32 in the Advanced Set
Up function.
Since only the first 12 words of the input and output files contain
valid information, the scanned input and output words can be set to
12. Reducing the number of scanned input and output words
decreases your SLC scan time.
Configuration information is entered in the Modify G File function.
Word 0 is reserved and, therefore, cannot be modified. Word 1
indicates the starting address of the device; word 2 indicates its size.
Example Program
( )
0
B3
END
Cycle
Message 1 is triggered by moving the
value 1 to output module group 0 of the
Dataliner.
This also updates an embedded variable in
message 1 by moving the accumulated
value of counter C5:0 to output module
group 1 of the Dataliner
.
MOV
MOVE
Source 1
Dest O:1.8
MOV
MOVE
Source C5:0.ACC
Dest O:1.9
I:1.8
13
Conveyor
OSR
MOV
MOVE
Source 2
Dest O:1.8
Counting
Conditions
Alarm
Conditions
( )
0
B3
OTL
OTU
EQU
EQUAL
Source A I:1.9
Source B 2
If
alarm conditions go from false to true,
trigger message 2 by sending the value 2
to output module group 0 of the Dataliner
.
If B3/0 is ON, message 2 has not been
acknowledged.
If the Dataliner input module group 1 is
equal to 2 (message 2 is presently
displayed) and the
[MSG ACK]
button is
pressed (I:1.8/13), unlatch the Alarm Not
Acknowledged bit (B3/0).