Siemens Data Structure. Frustrating

bornwild

Member
Join Date
May 2010
Location
Riyadh
Posts
429
Hello all,

I am a Rockwell guy and just started with siemens. The data sctructure frustrates me. Especially the swapped bytes. Can someone explain me with respect to Rockwell? In Rockwell, I can make a DINT type tag called MODE and pull it individual bits from it. For example, if there is 4 in my dint tag I will KNOW that Adress MODE.2 is having 1. How do you do in siemens? I have a value like 16#16000 in siemens . What would the individual bit bits be? I can check them inddiuvally. In Rockwell, I could check each bit. Suppose I make a tag a DINT tag in siemens. Can we address each bit like Rockwell? Please let me understands
 
Two other options would be to create an array of bools, or to create a structure/UDT with named bools.


The nice part about creating the bools as a struct is for situations where you are tracking modes/states/etc, you don't have to keep track of which number means which (oh wait, is "idle" mode.2 or mode.3?). It just becomes "Mode.Idle".


I will grant you that you can also just add it as a comment in the array (then you would be accessing Mode[2]), but most of the time I find creating the UDT more straightforward.
 

Similar Topics

Dear Experts, Please, kindly guide me through how to read data from ABB PLC to S7-1200 Siemens PLC. I want to use Siemens S7-1200 PLC to read data...
Replies
1
Views
443
Looking for options to write data to Siemens PLC. Looking for something closest to way we were doing it with AB PLC and excel sheet. Old way...
Replies
7
Views
892
Hi, I've created this 'report summary' page (see pic). Basically, this screen is a summary of all the tags saved (by pressing a SAVE button)...
Replies
78
Views
9,055
Anyone know how I can convert DTL to DATE type? This rung is trying to determine if the system is in calibration by subtracting the current date...
Replies
1
Views
580
I'm a bit stuck again... See the redacted picture. At the moment, pressing F7 saves the "live" laser measurement into the boxes indicated by the...
Replies
9
Views
1,073
Back
Top Bottom