PSC PT Program Generator User Manual page 170

Psc pt program generator user's manual
Table of Contents

Advertisement

Example Frames
Figure 129. Tip14.scr Pads a Number with Leading Zeros
Copy: QTY
Modify:
REVERSE1
Copy: ZEROS
Copy: 1ST SIX
Modify:
REVERSE2
This technique can be used with any fixed length by simply changing the fixed
length of the second template and providing enough zeros in the
158
Copies the quantity value in the default register into the INPUT SIZE
register.
Reverses the order of digits in the INPUT SIZE register.
Copies six zeros to the end of the value in the INPUT SIZE register.
Copies the first six digits in the INPUT SIZE register back into the
Quantity field of the default register. Any zeros beyond the sixth digit are
dropped.
Reverses the six characters in the default register, returning the original
input to the correct order with leading zeros.
PT Program Generator (PPG) v5.0
node.
Copy

Advertisement

Table of Contents
loading

Table of Contents