Reading Data via Modbus TCP using FBD in Machine Expert

Sham

Member
Join Date
Sep 2019
Location
Australia
Posts
152
Hi all,
Has any of you got any example of reading data from modbus tcp, using FBD? I am just trying to get my head around, doesnt look like a problematic thing at all, but just need to do its the best possible way. I am actually new to FBDs, did this a while ago using ladder.

Thanks
 
I guess you have a M241/251/262 PLC and EcoStruxure Machine Expert (Codesys)
Do you want the PLC to be Modbus Client and read/write from/to a device acting as Modbus Server?

Yes, have a M251 with ecostruxure machine expert. Yes, want to be reading/writing data to and from ABB’s switch for example?
 
@Kallileo, have you ever used ABB`s automatic switch? I essentially want to write some values to it, in order to make it switch (like switch the power source), but it looks like there is a complicated process to be followed to do that. Got any clues?
 
You mean Automatic transfer switch? Like the ones used to switch between mains and generator power sources?
I have not used it but it shouldn't be complicated.
Read the manual to find out which Modbus function codes the Modbus TCP server device supports.
For example if you want to write a single Holding Register you must use FC06 and for single coil FC05.

Experiment starting with setting up communication and then try to read some data.
When I use the device for the first time I start experimenting using a Modbus TCP Client on PC and only when I confirm that I read and write the correct registers from the device I setup the channels in the PLC.

Try first using the following tool first.
https://sourceforge.net/projects/qmodmaster/


https://www.csimn.com/CSI_pages/Modbus101.html
 

Similar Topics

Hello guys , i'm stuck and can't figure out how to make a communication between foxrtu station (soft to configure FOXBORO SCD2200 RTU with...
Replies
1
Views
2,012
Hi to all! Need some help! I'm reading CATERPILLAR engine data of a natural gas compressor into my MVI56E-MCM card. The card sits in a 14 slot...
Replies
7
Views
3,620
Greeting, I have some problem about reading FX2N-4AD data. Below is my connection Q2PLC - Connect to FX3U with CC Link In 1st node, I have...
Replies
0
Views
1,861
Is it possible to read data (DB) from another s7-300 plc via ethernet without implementing the plc in your project. Via MPI this is possible, i...
Replies
0
Views
1,881
Hello! New to the forum and new to PLCs in general. We have an ABB AC500 PLC (circa 2012?) and we are using CoDeSys (version 2.something). We're...
Replies
0
Views
626
Back
Top Bottom