FB_CXGetTextDisplayUSB
The function block is used for the CX2100 and for the EL6090 terminal. When the function block is called, only the matching NetID and port number for the respective device has to be allocated.
| nPort: | sNetID |
---|---|---|
CX2100 | Is displayed in TwinCAT on the ESB device tab. | Is the NetID of the PC or is left blank (‘ ‘). |
EL6090 | Is the EtherCAT address of the terminal | Is the EtherCAT address of the EtherCAT master. |

The function block FB_CXGetTextDisplayUSB is used to read the lines on the display. In addition, the cursor status is read, i.e. cursor switched on or off, or is flashing. The function block also indicates whether the backlight is switched on or off.
Inputs
VAR_INPUT
bExecute : BOOL;
sNetID : T_AmsNetID;
nPort : T_AmsPort;
eMode : E_CX2100_DisplayModesRd;
END_VAR
Name | Type | Description |
---|---|---|
bExecute | BOOL | The command is executed with a rising edge. |
sNetID | T_AmsNetID | AMSNetID of the device |
nPort | T_AmsPort | AmsPort of the device |
eMode | E_CX2100_DisplayModesRd | Mode switching |
Outputs
VAR_OUTPUT
bBusy : BOOL;
bError : BOOL;
nErrorID : UDINT;
sLine1 : STRING(80);
sLine2 : STRING(80);
nCursorPosX : USINT;
nCursorPosY : USINT;
nCursorMode : USINT;
nBacklight : USINT;
END_VAR
Name | Type | Description |
---|---|---|
bBusy | BOOL | The command is in the process of being transmitted by ADS. No new command will be accepted as long as |
bError | BOOL | Becomes TRUE, as soon as an error occurs. |
nErrorID | UDINT | Supplies the error number when the |
sLine1 | STRING | This string is read with the corresponding command. |
sLine2 | STRING | This string is read with the corresponding command. |
nCursorPosX | USINT | Cursor position on the X axis |
nCursorPosY | USINT | Cursor position on the Y axis |
nCursorMode | USINT | Cursor mode |
nBacklight | USINT | Backlight |
E_CX2100_DisplayModesRd:
E_CX2100_DisplayModesRd : (
eCX2100_DisplayNoActionRd := 0,
eCX2100_ReadCursorInfo,
eCX2100_ReadBackLight,
eCX2100_ReadLine1,
eCX2100_ReadLine2,
eCX2100_ReadLines
);
eCX2100_DisplayNoActionRd: no action.
eCX2100_ReadCursorInfo: read values via the cursor.
eCX2100_ReadBackLight: read backlight values.
eCX2100_ReadLine1: read values from the first line.
eCX2100_ReadLine2: read values from the second line.
eCX2100_ReadLines: read values from lines.
Requirements when using the CX2100
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1 | CX (WES7/Win7/Win10: TC RT x86/x64, WEC6/7: TC RT x86, TC/BSD: TC RT x64) | Tc2_SystemCX |
Requirements when using the EL6090
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1 | PC or CX (WES7/Win7/Win10: TC RT x86/x64, WEC6/7: TC RT x86, WEC7: TC CE7 ARMV7, TC/BSD: TC RT x64, TC OS ARMT2) | Tc2_SystemCX |