...
Table of Contents |
---|
...
Overview
As with all adapters, an existing https://unit040.atlassian.net/wiki/spaces/PUD/pages/280987237/Logic+Simulator#Overview is required.
...
Where to find the different Gateway Adapters
...
Where to find
To find the Beckhoff Twincat ADS adapter, go to the Inspector window of a https://unit040.atlassian.net/wiki/spaces/PUD/pages/280987237/Logic+Simulator#Overview component.
This https://unit040.atlassian.net/wiki/spaces/PUD/pages/280987237/Logic+Simulator#Overview can be added under Logic.
...
Feature overview
...
Info |
---|
Only the settings between the lines refer to the Beckhoff Twincat ADS Adapter. |
...
Gateway settings | |||
---|---|---|---|
Adapter Target | Select a different adapter, please see Prespective documentation for more information | ||
Adapter Setting (TwincatADSServerSettings) | |||
XmlFilePath | File path to the policy file
| ||
ServerName | Is used as the an indicator in the XML policy file | ||
IP Address | Is the AMS NetID of the server. Adding “:[PORT]” , where the port is an integer configures the PLC port. The default port when nothing is configured is 851 (Default for TwinCat3) | ||
RefreshCycleTime |
| ||
RefreshMaxDelay |
| ||
ConnectionTimeoutDuration |
| ||
OutOfSyncTimeoutDuration |
| ||
LifeCycleInputName |
| ||
LifeCycleOutputName |
| ||
Lifecycle settings |
|
...
How to use
Please see the https://unit040.atlassian.net/wiki/spaces/PUD/pages/280987237/Logic+Simulator#Overview documentation for further instructions on setting up your simulation.
...
Configuration Export
Prespective enables you to update your Twincat project files based on the signal definitions. Setting the right Project Export Folder for you active twincat project should be enough to get the export function working for twincat 3 projects as shown in the Advanced Tutorial - Conveyor Belt
...
<GLV_APPLICATION.GVL>
...
<POU of TESTOBJ_INPUTS>
...
Prerequisites
You need a (virtual) Beckhoff PLC that supports ADS communication.
...
These are the required steps for connecting to the digital twin. Other settings that apply to you setup can be found on https://www.beckhoff.com/
...
Supported Types
BOOL
BYTE
SBYTE
WORD
DWORD
SHORT
USHORT
INT16
UINT16
INT32
UINT32
INT64UINT64REAL32
REAL64
BYTEARRAYSTRINGSTRUCT
...
Naming Rules
Setting up the component works as like any other prelogic component. The thing you have to take into account is how the PLC Address Path Format (or implicit naming rule) is configured. The output of this Address is the path to the variable.
...