5-23
5.3 Program Data Format
Let’s take a look at coding syntactical charts of decimal numeric program data with respect to integer, fixed-point,
and floating- point notations respectively.
Note that the following processing is performed during transfer of any type of numeric representation.
●
Rounding of numeric element:
When a device receives a <DECIMAL NUMERIC PROGRAM DATA> element
having too many digits to handle, it ignores the sign of the element value and
rounds it off.
● Data outside the range: If the <DECIMAL NUMERIC PROGRAM DATA> element value is outside the
range permitted in relation to the program header, an execution error is reported.
(1) Integer NR1 transfer
A decimal value not including a decimal point and exponent, i.e., an integer (NR1) in a real number, is trans-
ferred.
<digit>
<white
space>
+
–
● 0 (s) may be added at the beginning. → 005, + 000045
● A space (+ or –) must not be inserted between a sign and a numeric. → + 5, + ∆5 (×)
● Spaces may be added after a numeric. → + 5∆∆∆
● The + sign may be omitted. → + 5, 5
● Commas must not be used to indicate decimal places. → 1,234,567 (×)