108
Chapter
6
Buffered Forms
Repeat
The Repeat command repeats a sequence of Code V commands and data a
user-specified number of times. The number of times to repeat a command or
data sequence is specified in the data section of a Buffered Form Execute
command. The manner in which this is done is best understood by referring to
Example 1 below.
The Repeat command has the following format:
Command ^R^<data>^Z^-
Arguments
^R^
Repeat Command
<data>
The data to be repeated.
^Z^-
End of Repeat Terminator
Example 1:
The Repeat command always occurs within the Buffered Form
Create command data sequence. The number of times to repeat
a portion of the data sequence is specified within the buffered
Form Execute command data sequence.
NOTE:
The Repeat command is used in the following Code V sequence:
^IFORM,CEXAMPLE1^G^R^-^M0201000Repeat ^[020^-^*^*^Z^-^]
^R^-
The beginning of the Buffered Format Repeat
command. Everything between the ^R^- and the ^Z
will be repeated.
^[020
The data field with a maximum size of 20 bytes.
^Z^-
The end of the commands and data to be repeated.
Now we want to execute the Form EXAMPLE1. The first four bytes of the
Execute data field must specify the number of times to repeat the data
sequence between the ^R and the ^Z. the next 20 bytes will be read from the
Execute data sequence, then the following four bytes specify the number of
times to repeat the data sequence again, and so forth until all the data in the
Execute command is used up.
NOTE:
Each time the Create data sequence is repeated by the Repeat
command, the same Execute data is used to fill the data field. The
Copy command, however, inserts new Execute data into the data
field each time the data field is repeated.
The Execute command sequence for EXAMPLE1 is:
^IFORM,EEXAMPLE1^G
0003 3 Times^+(Repeats 3 Times, three times.
0002 2 Times^+(Repeats 2 Times, twice)
^G
prints:
Summary of Contents for 6600 Series
Page 1: ...6600 Series Printers Applications Manual Volume 4 Graphics Languages Code V PGL MT660 IG...
Page 2: ......
Page 3: ...6600 Series Printers Applications Manual Volume 4 Graphics Languages Code V PGL MT660 IG...
Page 14: ...Table of Contents...
Page 26: ...26 Chapter 1 GPL Commands...
Page 47: ...Block Character 47 ISO Character Set Table...
Page 48: ...48 Chapter 2 ISO Character Set Table...
Page 82: ...82 Chapter 4 Postnet Barcodes...
Page 115: ...Primary Metals Form 115...
Page 120: ...120 Chapter 6 Version 1 Buffered Formatting...
Page 146: ...146 Chapter 7 Command Summary Table...
Page 203: ...Select Format SF Command Normal Create and Execute 203 Figure 9 Sample Form Printout...
Page 204: ...204 Chapter 9 Practice...
Page 269: ...269 B ASCII Chart...
Page 270: ...270 Appendix B...
Page 271: ...271 C Logos...
Page 272: ...272 Appendix C...
Page 273: ...273 D Patterns...
Page 274: ...274 Appendix D...
Page 275: ...275...
Page 276: ...276 Appendix D...
Page 277: ...277 E Fonts FQ Draft...
Page 278: ...278 Appendix E FQ NLQ FQ NLQ...
Page 279: ...279 FQ OCR A B...
Page 280: ...280 Appendix E FF Draft FF Draft...
Page 281: ...281 FF NLQ...
Page 282: ...282 Appendix E FF OCR A B FF OCR A B...
Page 283: ...283 FH Draft...
Page 284: ...284 Appendix E FH NLQ FH NLQ...
Page 285: ...285 FH OCR A B...
Page 286: ...286 Appendix E FH OCR A B...
Page 290: ...290 Appendix F...
Page 292: ...292 Appendix G...
Page 296: ...296 Appendix H Graphic Category Menu Level 1...
Page 299: ...299 PY Then Data Processing When PY Then NONE...
Page 304: ...304 Appendix J Block Character Size Table...
Page 310: ...310 Appendix K LCP Character Sets...
Page 328: ...328...
Page 329: ......
Page 330: ...255557 001A 255557 001...