PCD7.D250
User program examples
26/770 E1
(D25-08-E.DOC)
SAIA-Burgess Electronics Ltd.
Page 8-39
The following example demonstrates the principles.
FB parameters contain the following values:
Input text
"INP_TXT"
: "<12>"
; Clear display
"PARAMETER INPUT<10><13>"
"===============<10><13>"
"Value : $%00.3d$",PARAM.04T,"<10><13>"
"Accept value
[CR]"
Register
"PARAM"
: 567890
Register
"DIGIT"
: 8
Register
"DECIMAL"
: 3
Register
"X_POS"
: 40
Register
"Y_POS"
: 34
The minus sign is defined as:
K_SIGNEQUK 45
; Negative sign key
When the FB is first called, this text appears on the display:
PARAMETER INPUT
===============
Value : 567.890
Accept value
[CR]
The data is then input according to the following table. Only the data
input field is affected, the rest of the display remains unchanged during
input.