
Libraries, function blocks and
functions
02/05 AWB2724-1566GB
32
XN-PLC-specific functions
Library XN_PLC_Util.lib
This library contains the functions shown in the illustration below:
Function CAN_BUSLOAD
This function can be called cyclically in a user program. If a read
cycle has been completed successfully, the function returns TRUE
and writes the determined integration time and the bus utilization
values to the passed addresses.
If the bus load calculation is not yet completed or the CAN
controller has not yet been initialized, the function returns FALSE.
Each read cycle has a duration of 500 ms.
For information about evaluating the returned value, see canload
on page 27.
The function call in the user program is as follows:
Function GETAPPLICATIONSWITCH
With this function you can query the position of the application
switch. After an H signal at input xEnable, the number to which
the switch is set is displayed. This allows an external program
selection.
Figure 51:Functions of library XN_PLC_Util.lib
h
The Timer functions are described in section “Timer
interrupt” on page 20.
Figure 52:Function CAN_BUSLOAD
CAN_BUSLOAD
POINTER TO DWORD
p_dwIntegrationTime CAN_BUSLOAD
BOOL
POINTER TO BYTE
p_bBusload
Figure 53:Function GETAPPLICATIONSWITCH
GETAPPLICATIONSWITCH
BOOL
xEnable
GetApplicationSwitch
USINT
Содержание XION-PLC-CANopen
Страница 4: ...2 ...
Страница 8: ...02 05 AWB2724 1566D 4 ...
Страница 10: ...02 05 AWB2724 1566GB 6 ...
Страница 16: ...02 05 AWB2724 1566GB 12 ...
Страница 18: ...02 05 AWB2724 1566GB 14 ...
Страница 34: ...02 05 AWB2724 1566GB 30 ...
Страница 38: ...02 05 AWB2724 1566GB 34 ...
Страница 42: ...02 05 AWB2724 1566GB 38 ...
Страница 48: ...02 05 AWB2724 1566GB 44 ...
Страница 49: ...02 05 AWB2724 1566GB 45 Appendix Dimensions 113 25 114 75 50 6 74 4 ...