Beckhoff, modbus rtu master, EL6021

Noli2

Member
Join Date
Jun 2012
Location
Belgium
Posts
59
Hi

I'm trying to figure out how to configure my CX9020 PLC with EL6021 to be modbus master.

Anyone who has experience with that?

Kind regards
 
When you create your variable in PLC Control for the Modbus master:

MB: ModbusRtuMaster_KL6x22B;

It will create variables that need to be linked in System Manager:

MB.InData
MB.OutData
 
When you create your variable in PLC Control for the Modbus master:

MB: ModbusRtuMaster_KL6x22B;

It will create variables that need to be linked in System Manager:

MB.InData
MB.OutData


Thank you Archie for pointing out that I need ModbusRtuMaster_KL6x22B instead of ModbusRtuMaster_PCCOM :)

MB.InData contains MB.InData.Status (Word) and MB.InData.D (Array of 22 bytes)
The System Manager object also contains an array of 22 bytes, but no dedicated Status, instead it has one byte and 7 bits.

How do I map the status map on the System Manager variables?
 

Similar Topics

I'm getting no response from a device I'm trying to communicate to with a Beckhoff IPC. I'm not sure why it's not working. Attached are pictures...
Replies
0
Views
627
Hello! I have Beckhoff CX9000 with N031(2 RS-485) module on board and Mitsubishi FRA740 inventor. I need to control inventor with Modbus RTU, but...
Replies
1
Views
4,168
I am using a Beckhoff PLC and trying to convert a REAL to 2 WORDS to send over Modbus. Does anyone know how to do this? Also how would I convert...
Replies
5
Views
792
Has anyone had any experience using MODBUS/TCP with Beckhoff controllers? Specifically on TC3? I am using a CX8190 to communicate with an epson...
Replies
4
Views
2,750
Hello Long time lurker. I am flailing around trying to figure out how to implement MODBUS TCP on a W2000 IPC that controls one of my company's...
Replies
10
Views
5,877
Back
Top Bottom