a set of tools for creating visualization interfaces
The driver is meant to control Beckhoff ADS equipment. To understad the driver, use the project example:
download the examples:
iRidium for Beckhoff is a set of tools for creating interfaces to control homes or offices on the basis of Beckhoff equipment.
Control panels (iOS, Android, Windows, Mac) can control Beckhoff equipment only via Beckhoff controller. Controller must be selected as Target device in TwinCat System Manager.
To get started you add the Beckhoff driver to the project from the database iRidium:
Adding the Beckhoff driver
Indicate the controller address in iRidium project otherwise it will not work.
When the driver is added to the project, specify the connection settings.
You need the possibility to change connection properties when you disconnect from the Wi-Fi network of the automation object and start using 3G or another Wi-Fi network. To maintain control of the object you need to switch from the local to public IP-address of the Internet router.
The switch is not automatic. You have to select the connection mode. For remote acces you have to make ports for controlling the automation system public. In order to do that you have o set up the Port Forwarding service on your Internet router. VPN can provide protected connection.
1 Download the template (*.js) (right-click button: "Save object as ..."), add the template in the script editor with the button (+) Add Script from file
2 Set up script properties as it is shown in the example:
Copy the driver name from Projeсt Device Panel - the list of properties has to be copied from the example.
3 Select the button which will be responsible for the switch of Internal and External properties. Open Macros Editor for the Press event (Object Properties > Programming), select the Script Call command and add it by double-clicking on it. Select the name of the function which will be activated by the button:
Now each pressing on the button will apply the corresponding connection properties.
Commands and feedback channels have to be assigned to graphic items to control equipment:
To assign commands or channels to graphic items use the drag&drop method.
To send a command, drag it on a graphic item. To display feedback, drag the channel on the graphic item and indicate where to output the value (Value):
To set a command or feedback set values in the following fields:
The type of the variable in TwinCat System Manager, you can look in the settings variable
It's required to type point before variable name to access to global variables in GLOBAL section (physical inputs and outputs included). For example: .SwitchButton.
Add your IP address to the list of allowed addresses in TwinCat System Manager: SYSTEM -> Configuration -> Route Settings -> Static Routes -> Add...
Then click Add Route, and then click Close button.
You can also use Current Routes tab, but after a controller is reloaded, your IP address will be deleted from the list of allowed addresses.
After PLC program is downloaded to the controller, the firmware has to be replaced for all the settings to restore after reboot: PLC Control -> Online -> CreateBootproject.