twincat: hardcode link to process variable

nunojpg

Member
Join Date
Sep 2015
Location
Portugal
Posts
1
To link PLC variables to Ethercat process image variables, do I always have to use the Attach Variable dialog?

I ask this because there are several situations where I would prefer to assign a addresses directly at code to a specific ethercat address or variable "Full Name" (for example: "TIID^Device 2 (EtherCAT)^Term 1 (EK1100)^Term 3 (EL1114)^Channel 1^Input").

Even using the variable address at code (for example: bIn AT %IX39.1 :BOOL;), doesn't work because the necessary Sync Mapping for Ethercat process image is not generated.
 
Dear nunojpg:
You have to go to the Twincat system manager and then link the variables to their corresponding variables in the physical I/O's.
 

Similar Topics

I am using twincat 3 to send some strings over TCP/IP. Where the server is a sensor and my PLC is the client. I noticed that the sensor didnt...
Replies
2
Views
118
I'm trying to control a device via MODBUS RTU and the ModbusRtuMasterV2_PcCOM in Twincat 3. I've configured a device with the right com port and...
Replies
7
Views
303
Hi! I am trying to run the 'SimpleSample' (https://infosys.beckhoff.com/content/1033/TF5100_TC3_NC_I/Resources/3438746891/.zip ) to understand the...
Replies
2
Views
124
I am developing a library in twincat and one of the function uses IID_ITcVnAccess_TcVnPoint2_DINT and the definition of this type is defined in...
Replies
0
Views
97
Sorry if this has been asked before, and apologies if this seems like a trivial issue, but I am new to Beckhoff and have been banging my head...
Replies
2
Views
190
Back
Top Bottom