Technical Manual
WDGA with EtherNet/IP
4 - EtherNet/IP
© Wachendorff Automation GmbH & Co. KG
32
As can be seen above, the value 89h defines that the cam positions CAM 1, CAM 4
and CAM 8 are High and the remaining cams are Low. If the shaft continues to rotate,
it could happen, for example, that CAM 4 finally becomes Low as well. Then the value
of the CAM-state-register = 81h:
Position
7(MSB) 6
5
4
3
2
1
0(LSB)
Type
CAM 8 CAM 7 CAM 6 CAM 5 CAM 4 CAM 3 CAM 2 CAM 1
Value
1
0
0
0
0
0
0
1
Logic
High
Low
Low
Low
Low
Low
Low
High
Table 4.13: CAM state register
By switching each CAM independently, 256 different states can thus be generated
within one attribute, which can be used to control machines.
4.4.2.2 114d
– CAM enable register
Each cam position of the CAM channel in the encoder must be "switched on"
individually for use. The "switching on" of the individual CAM works by writing the
appropriate value into attribute 114d. The correct value is to be found by setting the bit
to 1 in binary notation for each cam switch position that is to be active. For example, if
only CAM 2, CAM 4 and CAM 7 are to be active, the result after binary notation is:
Position
7(MSB) 6
5
4
3
2
1
0(LSB)
Type
CAM 8 CAM 7 CAM 6 CAM 5 CAM 4 CAM 3 CAM 2 CAM 1
Value
0
1
0
0
1
0
1
0
Table 4.14: CAM enable register
This corresponds to the value 4Ah.
4.4.2.3 115d
– CAM polarity register
The CAM-polarity-register in attribute 115 can be used to change the polarities of each
cam switch position in the CAM channel. By default the polarity is set so that all cam
positions "jump" to High (= 1b) at position values in their limits (default = 000000b =
00h). By changing the individual bits, the individual polarities of the cam positions can
be changed. Thus, at a value of 13h (= 00010011b) CAM 1, CAM 2 and CAM 5 are
inverted (bit = 0b (Low), if position value within the limits).
Position
7(MSB) 6
5
4
3
2
1
0(LSB)
Type
CAM 8
CAM 7
CAM 6
CAM 5
CAM 4
CAM 3
CAM 2
CAM 1
Value
0
0
0
1
0
0
1
1
Logic
Default Default Default Inverted Default Default Inverted Inverted
Table 4.15: CAM polarity register