User program examples
PCD7.D250
Page 8-36
SAIA-Burgess Electronics Ltd.
(D25-08-E.DOC)
26/770 E1
Detailed description of inputs and outputs
•
Input text "INP_TXT":
This text is transmitted the first time the FB is called. The value of
the element to be edited (register/counter) is only displayed when the
FB outputs this text, and must be represented in the text. Apart from
this, the text can be any size and can contain any characters. The
current value of the element can be displayed in any format, however
it is recommended that same format is used for both the input and the
display of the data.
Example:
TEXT
INP_TXT "<12>"
; Clear display
"PARAMETER INPUT<10><13>"
"===============<10><13>"
"Value : $%00.3d$",PARAM.04T,"<10><13>"
"Accept value
[CR]"
•
Input parameter "PARAM":
This parameter indicates which register or counter is to be changed.
•
Number of digits "DIGIT":
This value defines the input field size. The register value defines the
number of digits including the minus sign and decimal point. The
number of digits entered is monitored and limited during input.
Note: the last digit of the display line must not be used for the
entry field.
•
Number of decimal places "DECIMAL":
Fixed point format is used, this defines the number of decimal places.
If no decimal point is required, use a value of 0 in this register. The
number of decimal places is monitored and limited during input.
Example:
DIGIT = 8
┌──────┴──────┐
Input field
1 2 3 4 . 5 6 7
└─┬─┘
DECIMAL = 3
•
Cursor position "X_POS"/"Y_POS":
Defines the position for the first character of the input field.