Rockwell Automation 5370 CVIM Communications Manual User Manual
Page 48
Chapter 4
Using the Remote I/O Link
(Node Adapter)
4–11
The following ladder logic program provides examples of:
•
Triggering an inspection from a PLC.
•
Enabling/Disabling the user access to the setup mode using the lightpen.
•
Checking for valid results.
•
Reading and displaying pass/fail/warning tool results (Window 1,
Toolset 1).
•
Controlling screen display from a PLC.
The program assumes that the CVIM module is located in rack 02 (processor
address is 074 octal) and the PLC is in rack 00.
31 December 1989 Page 1
Ladder Listing Processor File: CVIM.ACH Rung 2:0
Rung 2:0
Specify Toolset 1 for remote I/O data – either this bit or 0:22/01 must be set for
the PLC to receive results
| Post TS1 |
| results to |
| REM I/O |
| O:022 |
+––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––( )–––––+
| 00 |
Rung 2:1
This rung acquires an image, the CVIM one shots the input (F to T transition)
| Trigger |
| Trigger TS1 Trigger |
| Cam 1 |
| I:010 O:020 |
+––––] [–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––( )–––––+
| 02 12 |
Rung 2:2
The next two rungs control enable or disable the lightpen from entering the setup
mode on the black and white monitor. A keyswitch can be used here.
| |
| Lock Disable |
| Setup Setup |
| I:010 O:020 |
+––––] [–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––( )–––––+
| 00 10 |
Rung 2:3
| |
| Unlock Enable |
| Setup Setup |
| I:010 O:020 |
+––––] [–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––( )–––––+
| 01 11 |
Example Program for
Accessing/Setting
Discrete Bit Data