Setting Up the PLC Program
Next, we'll copy the results in the input assembly to our controller tag Results.
Again, we use the COP function to copy the 52 byte Input_Assembly structure
from the user data portion of the input assembly to the Results tag.
Finally, we'll create a trigger event using a timer. We will create a 1-second
trigger by toggling an IO point every half second. To do this, we'll use the TON
timer using our program tag name Trigger_Timer and set the Preset value to 500.
Then, on another rung, we will check for a timer done condition. If true, we then
toggle the value of our Trigger and reset the timer.
On another rung, we will copy the value of a bit from the Trigger Value and write
it to the IO bit 0 of the Ethernet/IP output. This will correspond to Virtual IO 129
F
®
in the Visionscape
program.
F-29
Rev. 1H, Mar 2009
Visionscape® Smart Camera HE1600T Guide
Need help?
Do you have a question about the Visionscape HE1600T and is the answer not in the manual?