Programming
BC5250
67
Version: 2.0.0
iERP :INT; (*100ms, ERP*4=Watchdog*)
E_BaudRate :ENUM;(*0-125kBaud, 1-250kBaud, 2-500kBaud, 3-AutoBaud*)
END_STRUCT
END_TYPE
)1 If the DN mode is only 8 Byte In and 8 Byte Output allowed. That is fix and you can´t change it.
Key
iInputData: Number of input data (from the point of view of the BX). Size in bytes [BX5200: 0..255 bytes,
BC5250: 0..127 bytes]
iOutputData: Number of output data (from the point of view of the BX). Size in bytes [BX5200: 0..255 bytes,
BC5250: 0..127 bytes]
E_Mode: DeviceNet Mode
iERP: Expected Racket Rate. This value multiplied by 4 results in the watchdog
E_BaudRate: DeviceNet Baudrate
iErrorId
Return parameter iErrorId
Meaning
0
no Error
-1
Wrong BX or BC Typ
-2
Wrong firmware version (BC5250 Version 5 or higher, BX5200 110 or
higher)
0x1000_xxxx
xxxx ADS Error Code (see ADS Return Code)
5.12.3
TcBaseBX
5.12.3.1
System task information
VAR_GLOBAL
SystemTaskInfo : SYSTEMTASKINFOTYPE;
END_VAR
System flags are implicitly declared variables. Using the Input Assistant, a variable SystemTaskInfoArr can
be found under system variables. This variable is a field with four structures of type
. The structure definition can be found in the system library. The index in this field is the task ID.
Development environment
Target platform
PLC libraries to be linked
TwinCAT v2.9.0
BCxx50, BC9x20 Controller
TcBaseBCxx50.lbx
5.12.3.2
System Task Info Type
TYPE SYSTEMTASKINFOTYPE
STRUCT
active : BOOL;
taskName : STRING(16);
firstCycle : BOOL;
cycleTimeExceeded : BOOL;
cycleTime : UDINT;
lastExecTime : UDINT;
priority : BYTE;
cycleCount : UDINT;
END_STRUCT
END_TYPE
Key
active: This variable indicates whether the task is active.
taskName: the task name.
firstCycle: During the first PLC task cycle, this variable has the value: TRUE.
cycleTimeExceeded: this variable indicates whether the set task cycle time was exceeded.
cycleTime: set task cycle time in multiples of 100 ns.