omron — READ

PMAC Product Guide The Q-Variable and flag bit of Q100 associated with each letter are shown in the following table: Any letter may be read except N or O, which are reserved for line labels (and should only be at the beginning of a line anyway). If a letter value is read from the calling line, the normal function of the letter (e.g. an axis move) is overridden, so that letter serves merely to pass a parameter to the subroutine. If there are remaining letter values on the calling line that are not read, those will be executed according to their normal function after the return from the subroutine. Examples:

In standard machine tool code, a two-second DWELL would be commanded in the program as a G04 X2000 , for instance. In PMAC, a G04 is interpreted as a CALL to label N04000 of PROG 1000, so to implement this function properly, PROG 1000 would contain the following code: N04000 READ(X) DWELL (Q124) RETURN In standard machine tool code, the value assigned to the current position of the axis may be changed with the G92 code, followed by the letters and the new assigned values of any axes (e.g. G92 X20 Y30 ).

It is important only to assign new values to axes specified in this particular G92 command, so the PMAC subroutine implementing G92 with the PSET command must check to see if that particular axis is specified:

232 Buffer Commands Letter Target Variable Q100 Bit Bit Value Decimal Bit Value Hex A Q101 0 1 $01 B Q102 1 2 $02 C Q103 2 4 $04 D Q104 3 8 $08 E Q105 4 16 $10 F Q106 5 32 $20 G Q107 6 64 $40 H Q108 7 128 $80 I Q109 8 256 $100 J Q110 9 512 $200 K Q111 10 1,024 $400 L Q112 11 2,048 $800 M Q113 12 4,096 $1000 N Q114* 13* 8,192* $2000* O Q115* 14* 16,384* $4000* P Q116 15 32,768 $8000 Q Q117 16 65,536 $10000 R Q118 17 131,072 $20000 S Q119 18 262,144 $40000 T Q120 19 524,288 $80000 U Q121 20 1,048,576 $100000 V Q122 21 2,097,152 $200000 W Q123 22 4,194,304 $400000 X Q124 23 8,388,608 $800000 Y Q125 24 16,777,216 $1000000 Z Q126 25 33,554,432 $2000000 *Cannot be used