Sample plc–5/250 program – Rockwell Automation 5370 Color CVIM Communications Manual User Manual

Page 143

Advertising
background image

Chapter 6
Using the Pyramid Integrator Backplane

6–6

The following program shows how to trigger an inspection,, upload an entire
Color CVIM configuration for archiving and later downloading, read Gage 1,
and control the display. All requests are done through the Request word
1N0:0.

Rung #0

Activates the 100 millisecond command timer and the
command one shot.

Rung #1

Clears the request word if the timer is done timing the 100
milliseconds.

Rung #2

Triggers the Color CVIM to perform an inspection upon a
false to true transition of 1N0:0/0.

Rung #3

Reads the integer value of gage 1 and places it in 1N0:2
upon a false to true transition of 1N0:0/1.

Rung #4

Sends one message (0MSG0:0) to read the configuration as
described on page 6–13 upon a false to true transition of
1N0:0/2.

Rung #5

Sends one message (0MSG0:1) to write the configuration as
described on page 6–13 upon a false to true transition of
1N0:0/3.

Rung #6

Locks Lightpen Requests upon a false to true transition of
1N0:0/4.

Rung #7

Unlocks Lightpen Request upon a false to true transition of
1N0:0/11.

Rung #8

Processes Lightpen Runtime Control Request upon a false to
true transition of 1N0:0/5 with the 0N0:3/0–7 containing the
runtime display control, 0N0:3/8–15 containing the freeze
control, 0N0:4/3 the resume control, 0N0:4/4&5 the page
control, 0N0:4/6 the reset statistics, and 0N0:4/7 the reset
counters. See Appendix B for a description of the control
bits.

Rung #9

Process force commands upon a false to true transition of
1N0:0/6, with 1N0:5 containing the ON mask and 1N0:6
containing the OFF mask.

Rung #10

Move configuration from EEPROM to RAM upon a false to
true transition of 1N0:0/7.

Sample PLC–5/250 Program

Advertising