M340 Addressing

Join Date
Feb 2014
Location
BC
Posts
10
Hey,

I have a structure I want to make accessible over the network (ModbusTCP). I've assigned a modbus address to the structure and it auto populated the addresses.

What I am wondering is how does it pack the BOOL data type into the MW? I noticed it uses the same MW address for two boolean registers. How do I access those bits when I unpack the word? Is bit 0 the first boolean and bit 1 the second boolean?

Thanks

tgmiLAP.png
 
I believe each BOOL takes one byte (8 bits) to store, hence two BOOLs per 16 bit word. From memory the first bit of each byte is the value. If they were EBOOLs then other bits would indicate forcing, previous state etc
 
I believe each BOOL takes one byte (8 bits) to store, hence two BOOLs per 16 bit word. From memory the first bit of each byte is the value. If they were EBOOLs then other bits would indicate forcing, previous state etc

So you're saying the BOOL data should be in bit 0 and bit 8 of each word?
 

Similar Topics

I would like to read the system tags (%S, %SW) from a m340 processor into my HMI/Historian. I am using kepserverEX OPC server and it uses...
Replies
1
Views
1,802
Dear Friends, I have developed a Trainer bench for my university using an M340 PLC (BMXP341000, DRA1602,DRA 1605, AMM0600, NOC0401.2) and...
Replies
3
Views
1,842
I have been working on a project involving a Schneider M340 PAC attached via ethernet to a Red Lion G310 and was having difficulties figuring out...
Replies
6
Views
6,268
Hello, Considering the M340 as a Modbus slave, and another device attempting to access internal memory of the M340 using the standard holding...
Replies
2
Views
6,508
Hello all, I working on laying out I/O for a program in a M340 processor with remote Advantys IO drops. I am more familiar with a momentum...
Replies
5
Views
41,894
Back
Top Bottom