horvatmiha

S7-1200 Modbus TCP - How to read/write MEMORY BITS?

3 posts in this topic

Hello!

I am using S7-1200 PLC 1212C AC/DC with configured Modbus TCP Server. I can already read/write Inputs/Outputs (Coils) and Memory Words. However I'd like to read/write Memory BITS. Is it possible? If so, how? What addresses should I use in TIA portal? And which function codes on client side?

Thanks in advance!

Share this post


Link to post
Share on other sites

Hello,
To write and read in the memory bits, you have to address it in the following way ....
modbus plc memory
mw100 = mb100-mb101
memory tcp = 40001

then to write would be m101.0 and by the customer 40001.1

then to write would be m101.1 and on the part of the client 40001.2 and so on.

Test and practice and tell us.

a greeting.

Share this post


Link to post
Share on other sites

Screenshot_2019-04-18-23-04-20-977_com.google.android.youtube.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now