PreviousNext

Input Assembly Instance 100

In this example application, we will also be using the Assembly Instance 100 that holds 64 bytes of user data. The complete assembly is:

DINT

Meaning

0
32 Bits of Camera Virtual IO
1
User defined tag value
2
Camera Status Register
3
Last Error
4...19
64 bytes of user data

In this example, we will be storing Data Matrix results into the user data block of the assembly. We will be returning the center point of the Data Matrix code that is composed of three floating point numbers (X, Y, and angle). This data will be followed by the decoded string of the Data Matrix up to a length of 28 characters. This is then followed by a Boolean containing the pass/fail status of the Data Matrix Tool. The complete assembly is:

DINT

Contents

0
Unused (Bit 0 = Acquire trigger status)
1
PLC User Tag (always 0x00000001 in this example)
2
Camera Status Register
3
Last Error
4
Echo of PLC User Tag (0x00000001)
5
Center Point X
6
Center Point Y
7
Center Point Angle
8
Decoded String Length
9-15
Decoded String
16
Data Matrix Tool Pass Status
17...19
Unused

Note: Each discrete numeric data type (integers, floats, and booleans) in Visionscape® will map to a DINT in the assembly when using the provided Perl scripts for reading and writing Ethernet/IP data.


PreviousNext