Supported platforms: CODESYS 2.3
This function call must be added to the PLCopen application if the programmer wants to use CAN-API services in the PLCopen application.
This function only sets the pointer CanApi_SharedMemory in CanApiinternal.lib globals correctly.
Before shared memory is visible/accessible in the IEC application, there must be the function call CanApiSrvInit in application. This function must always be executed succesfully before other CAN-API functions can be used. It is only necessary to call this function once. |
No input variables
Output variable name |
Data type |
Range |
Description |
CanApiSrvinit |
DINT |
|
Status of the execution. Function uses also external functions it is possible that function returns error codes from firmware side. |
Definitions: |
|
error:DINT; |
|
Code: |
|
error := CanApiInitSrv(); |
|
EXP - file: No exp files.
|
Source file Topic000050.htm
Last updated 24-Apr-2025