Also according to IEC 1331-7, on the input/output variable, input_declarations ::= see IEC 1131-3 Annex B, one should take a look into 1131-3.
After taking a look in 1131-3, this is the closes thing that I've found to how one should define the sub range for a spec (Table 12 - Data type declaration features):
Subrange data types, e.g.:
TYPE ANALOG_DATA : INT (-4095..4095) ; END_TYPE
According to FFLL page that contains some tips on the IEC input/output variable:
Also according to IEC 1331-7, on the input/output variable,
input_declarations ::= see IEC 1131-3 Annex B
, one should take a look into 1131-3.After taking a look in 1131-3, this is the closes thing that I've found to how one should define the sub range for a spec (Table 12 - Data type declaration features):
So instead of writing it like this:
It probably should be written like this:
Where, following the example in IEC 1331-3:
TYPE
there isVAR_INPUT
ANALOG_DATA
isinput_id
INT
there isREAL