Can be used to send and reveice Profinet acyclic data (RecordData) when connecting a virtual model to a real PLC (Hardware-in-the-loop).
- Download the zip file from the latest release page
- Unpack and place it in the directory or a subdirectory of the
OC.Assistant.exe
- Start the Assistant and connect or create a TwinCAT solution
- Add a new plugin instance using the
+
button - Select
RecordDataServer
, configure parameters and pressApply
(see also) - The plugin starts when TwinCAT goes to Run Mode
- AutoStart: Automatic start and stop with TwinCAT
- Port: The ADS port of the Profinet Device. Default port is 852.
The RecordData Plugin serves as a buffer to store Read/Write Requests (RDREC/WRREC) and Read/Write Responses. Behaviour models within the TwinCAT PLC can access the Read/Write Requests and send corresponding Read/Write Responses.
sequenceDiagram
participant A as Profinet Device
participant B as RecordData Plugin
participant C as TwinCAT PLC
A->>B: Read/Write Request 1
activate B
A->>B: Read/Write Request 2
A->>B: Read/Write Request 3
A->>B: Read/Write Request n
loop each PLC cycle
B->>C: Read/Write Request
C->>B: Read/Write Response
end
B->>A: Read/Write Response 1
B->>A: Read/Write Response 2
B->>A: Read/Write Response 3
B->>A: Read/Write Response n
deactivate B