February 2012 17 – 239
8 Check the value in the word W1060 or the double word 1172, or whether the marker 4563 is set.
The word W1060 contains the axes for which the feed rate was individually enabled by the PLC.
If the marker M4563 is set, the PLC enables the feed rate in all axes.
(Either W1060 or M4563 is used.)
8 Check the value in the word 1040 or the double word 1132.
The word W1040 contains the axes in which the control loop is opened by the PLC (e.g. clamped
axes).
Example of evaluating a word:
W1024 = $004F
The first HEX digit has the value F, i.e. the first 4 axes are enabled (2
0
+2
1
+2
2
+2
3
= 1+2+4+8 = F).
The second HEX digit has the value 4, i.e. the 7th axis is enabled (2
2
= 4).
In binary format this is 0100 1111 and in decimal format the value 79.
Whether words or double words are used, depends on the setting of bit 14 of MP4020:
Bit 14 = 0 --> PLC interface for up to 14 axes
Bit 14 = 1 --> Expanded PLC interface for up to 18 axes
The value of the words is displayed in hexadecimal or decimal format.
The hexadecimal format is distinguished by a leading $.
A hexadecimal digit consists of 4 bits. I.e. you can, for example, calculate for which axes the feed
rate is enabled.
$ 0 0 4 F
0 1 0 0 1 1 1 1
= HEX
= BIN
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
0+4+0+0 8+4+2+1
4
15
Value of
indivdual places
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
0+64+0+0 + 8+4+2+1
79
= DEC
Place value
considered