How-To: Sending data to the Data Portal
⚠ Important Note :
This guide applies to the ifm mobileIoT IoTBuilder CR31xx.package version 3.0.0.0 or newer.
Use cases
Sending data from ecomatDisplay

Sending data from the CR3171
ifmRawCAN.library

Prerequisites

Close all instances of the service pack in which you are going to install the packages



⚠ Important Note :
The versions may differ after your installation.
Step 1: IoT Builder in mobileIoT suite

Project information: Name of your project Project target : Select the machine or the type of gateway you are building the IoT Builder for My setup: Controller type: Device the IoT Builder is going to run on Controller interface: Always ETH
Modem IP Address: IP of the mobileIoT gateway GPS Enable: Enable if GPS data is needed (enabled by default on CR3171 FW ≥ 1.7.0) Cycle: Time interval for GPS data collection Distance: ???

Signal type: Standardized metric or create own metric Signal details: Customize name and unit Configuration Cycle : Time interval for data collection Trigger : Variable in CODESYS triggering logging of the Application Variable Application variable : Name of the CODESYS variable holding the value Type : CODESYS data type Category : ??? Permission : Access control in Data Portal Transformation : Optional value transformation




Step 2: Import into CODESYS
Importing mobileIoT program
Afterwards you should see the following:


Library Manager -> Add Library -> ifm_mobileIoT
Library Manager -> Placeholders -> Check for empty libraries and select a version
⚠ Important Note :
For system libraries beginning with version 3.5 you should never choose a library above your service pack and patch version.
For example: When using SP19 Patch 7, you should not use a system library above V3.5.19.7
⚠ Important Note :
Repeat this process until all placeholders are set.

Make sure, that the mIoT task is assigned to a task by drag and dropping the PRG on any task

Adding values to your signals

GVL_mobileIoT.uiAmbientHumidity := 40;
⚠ Important Note :
User and password are only needed for the use of the CR3170.
User is admin and the password must be as base64 encoded.
Snapping a value of your signal
uiAmbientHumidity
xSnapAmbientHumidity
xSnapAmbientHumidity := TRUE;
Adding mobileIoT status screen
Open or create a visualization Navigate to Visualization Toolbox -> ifm_mobileIoT -> Drag and Drop the mobileIoT_StatusScreen into the visualization




⚠ Important Note :
Due to missing information from device side, its possible that not all values are getting displayed.