BECKHOFF CX1100-000x User Manual
Page 20
Product overview
18
Embedded PC
e_CX1000_DisplayOff
: Switch off the display.
e_CX1000_CursorOn
: Switch on the cursor.
e_CX1000_CursorOff
: Switch off the cursor.
e_CX1000_CursorBlinkOn
: Switch on the cursor flashing.
e_CX1000_CursorBlinkOff
: Switch off the cursor flashing.
e_CX1000_BackLightOn
: Switch on the background illumination.
e_CX1000_BackLightOff
: Switch off the background illumination.
e_CX1000_ClearDisplay
: Clear the content of the screen.
e_CX1000_WriteLine1
: Write to the first line.
e_CX1000_WriteLine1
: Write to the second line.
The call then looks like this:
Display_0(
bExecute := write_now,
(*write_now is a bool, function: switch)
nDevID
:= 1,
(*DeviceID of the CX1100*)
nMode
:= e_CX1000_WRITELine1,
(*Write to the first line of the display*)
stLine
:= 'Beckhoff CX1100',
(*Fixed text or variable*)
nCursorPos := 0
(*Writing position, e.g. 0 for start line*)
);
The block supplies a few status signals for evaluating the program environment. These can be used to provide
feedback to the PLC program. There are three response signals from the function:
bBusy : BOOL
bErr : BOOL
nErrorID : UDINT
"bBusy" indicates that the command is at present being transferred by ADS. No new command will be accepted as
long as "bBusy" remains TRUE. "bErr" reports an error in a call to a function block. (The signal becomes TRUE).
"nErrorID" permits the error that has occurred to be analysed by means of an error number. The error number refers
to an error in the ADS protocol.