Omron SYSMAC C200H-ASC02 Operation Manual page 133

Ascii unit
Hide thumbs Also See for SYSMAC C200H-ASC02:
Table of Contents

Advertisement

Formatting and Data Conversion
SmIn
SmHn
SmOn
SmBn
Remarks:
Each S Format designator corresponds to one variable from the variable list: the first designator corresponds
to the first variable in the list, etc.
The array variables must be one dimensional. Each array variable in the list must indicate (with a subscript) a
specific element within the array. The number of words to be written to or read from the array will be increm-
ented from the specified element. For example: if the array variable T(4) is specified in a READ statement and
the corresponding format is S100I4, then 100 words will be read from the array, starting at T(4) and ending at
T(104).
Example:
PC READ "S100I4, S75H2, S80O3"; A(1), B(11), C(51)
A(1) to A(100): A hundred words of 4-digit decimal data indicated by S100I4 are read to these variables.
B(11) to B(85): Seventy-five words of 2-digit hexadecimal data indicated by S75H2 are read to these vari-
ables.
C(51) to C(130): Eighty words of 3-digit octal data indicated by S80O3 are read to these variables.
128
Format
Indicates an array in decimal format.
Indicates an array in hexadecimal format.
Indicates an array in octal format.
Indicates an array in binary format.
Meaning
Appendix D

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents