This CSK module provides an easy access to IOLink functionality of AppSpace controller.
For further information check out the documentation in the folder "docu".
Before setting up communication with IO-Link sensor, the sensor port must be powered using CSK_Module_PowerManager. The app includes an intuitive GUI to setup communication with IOLink device.
- After powering the used port, select it in UI
- Activate the port
- If there is an IO-Link device connected to activated port, you will see all available information about its identification
- You can send and receive values to/from device as decimal byte arrays for testing purposes (no IODD needed, see upper part of ReadMessage/WriteMessage UI)
If there is available IODD interpreter with loaded IODD file for the connected device, it is possible to create customized IODD read and write messages:
- Set name for new ReadMessage
- Create new ReadMessage
- Select when you want to read data, periodically (period in ms) or on some CROWN event
- Select process data you want to read from device
- Select parameters you want to read from device
- See result of reading the message. You can refresh the latest received payload or initiate reading from UI.
- Set name for new WriteMessage
- Create new WriteMessage
- Select process data you want to write to device
- Select parameters you want to write to device
- See the latest message written to the device
- Get the JSON template that must be used for message to be written. When you try to write the message to the device, the message JSON structure must be same as the structure of the template
- Test writing message to the device by coping and editing the JSON template
Following CSK modules are mostly necessary to make use of the features of this module:
Module | Version | Remark |
---|---|---|
CSK_Module_PowerManager | >=V2.5.0 | To power ports |
CSK_Module_IODDInterpreter | >=V2.0.0 | To set read and write messages |
CSK_1stModule_Logger | >=V4.0.0 | To log problems with data interpretation |
CSK_Module_PersistentData | >=V4.0.0 | To persist data |
- Data Storage support to save set of all parameters to be applied on controller reboot or device reconnection.
Tested on
Device | Firmware version | Module version |
---|---|---|
SIM1012 | V2.4.2 | V2.1.1 |
SIM1012 | V2.4.2 | V2.1.0 |
SIM1012 | V2.4.2 | V2.0.0 |
SICK AppEngine | V1.7.0 | V2.0.0 |
SIM1012 | V2.3.0 | v1.0.0 |
NOTE! Writing process data to IO-Link device works after SIM1012 firmware version 2.3.0
This application / module is part of the SICK AppSpace Coding Starter Kit developing approach.
It is programmed in an object-oriented way. Some of the modules use kind of "classes" in Lua to make it possible to reuse code / classes in other projects.
In general, it is not neccessary to code this way, but the architecture of this app can serve as a sample to be used especially for bigger projects and to make it easier to share code.
Please check the documentation of CSK for further information.
Coding Starter Kit, CSK, Module, SICK-AppSpace, IO-Link, IODD