BECKHOFF

Version 3.5 by Joe on 2024/08/26 18:13

TwinCAT_PLC_Ethernet

Supported series: Twincat

HMI Settings

ItemSettingsNote
ProtocolTwinCAT_PLC_Ethernet 
ConnectionEthernet 
Port NO.48898 
ADS port801/811/821/831 
PLC station No.1

 Choose protocol: TwinCAT_PLC_Ethernet

0rPAMOoxzH.png

setting→PLC IP Address→AMS NetId 

RVUyBW3DPV.png

PLC Settings

Choose Target System→ Search→ Broadcast Search→ choose PLC → Add router→ choose CPU → OK

lTAhpgCBWJ.png

Route Settings→Add Route Dialog→ Broadcast Search→ choose PLC→ modify HMI name → change AmsNetId as 192.168.50.154.1.1 (HMI IP + .1.1) →  select the option of IP Address→ set HMI IP in Address info→ Add route

gfF9dtMLW7.png

Actions→ Activate configuration

0bvTefCtCv.png

how to import the tags

Open TwinCAT PLC Control→ edit program→ save the program in a path → Project → Rebuild all 

f925vKrK47.png

FITLTJJfLP.png

Note: After "Rebuild all", there will be a file whose format is "tpy".

Labels mange→ Import Tag From File→ choose the file whose format is "tpy" in the path →Save

qaOxmsAR2S.png

Support Variable Type

Data TypePIStudio Data FormatRange
BOOLBit0~1 
BYTE16-bit Unsigned/Binary/BCD/Hex0~255
WORD16-bit Unsigned/Binary/BCD/Hex0~65535
DWORD32-bit Unsigned/Binary/BCD/Hex 0~4294967295
SINT16-bit Signed/Binary/BCD/Hex-128~127
USINT16-bit Unsigned/Binary/BCD/Hex0~255
INT16-bit Signed/Binary/BCD/Hex-32768~32767
UINT16-bit Unsigned/Binary/BCD/Hex0~65535
DINT32-bit Signed/Binary/BCD/Hex-2147483648~2147483647
UDINT32-bit Unsigned/Binary/BCD/Hex0~4294967295
REAL32-bit Floating1.00E~44,3.40E+38
LREAL64-bit Floating4.94065645841247e~324,1.7976931348623157e+308
STRINGSTRING