Rockwell Automation 5370 Color CVIM Communications Manual User Manual

Page 49

Advertising
background image

Chapter 4
Using the Remote I/O Link

4–12

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).

Controlling screen display from a PLC.

The program assumes that the Color CVIM module is located in rack 02
(processor address is 074 octal) and the PLC is in rack 00.


Program Listing Report PLC–5/15 File CCVIM1 Rung 2:0

Rung 2:0
Specify the half of the toolset you want
| Post first |
| half of |
| the TS |
| O:022 |
+––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––( )–––––+
| 00 |

Rung 2:1
This rung acquires an image, the Color CVIM one shots the input
| Trigger |
| TS from Trigger |
| outside the Camera |
| B3 O:020 |
+––––] [–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––( )–––––+
| 3 12 |

Rung 2:2
The next two rungs control the SETUP bit so that the lightpen can not
get into the Color CVIM.
| Lock the |
| SETUP Disable |
| bit Setup |
| B3 O:020 |
+––––] [–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––( )–––––+
| 1 10 |

Rung 2:3
| Unlock the |
| SETUP Enable |
| bit Setup |
| B3 O:020 |
+––––] [–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––( )–––––+
| 2 11 |

Example Program for
Accessing/Setting
Discrete Bit Data

Advertising