Step7 - Read some bit from Word in Interface area

PeterW said:
I wouldn't be happy with that, temp marker bytes went out with S5.
It does not matter that the user is new, he should be taught the correct way, this forum would help anyone who does not understand indirect addressing.
I think using of indirect addressing is useful only when another way is not effective. Reasons? In first, many people know ladder only. Plant electrician with basic S7 knowledge can understand something in LAD program but he will be panic if he try to understand STL indirect. Simple problem - and you instead of sleeping must to go to PC. Indirect cann't be converted to LAD. Second, if you want to make your alghoritms portable, you must avoid indirect. For example, if I use MW40 and M40.0 in Siemens, I can use similar %MW40 and %MW40:X0 in Schneider. Conversion will be easy.
 
Gambrinus said:
I think using of indirect addressing is useful only when another way is not effective. Reasons? In first, many people know ladder only. Plant electrician with basic S7 knowledge can understand something in LAD program but he will be panic if he try to understand STL indirect. Simple problem - and you instead of sleeping must to go to PC. Indirect cann't be converted to LAD. Second, if you want to make your alghoritms portable, you must avoid indirect. For example, if I use MW40 and M40.0 in Siemens, I can use similar %MW40 and %MW40:X0 in Schneider. Conversion will be easy.

I disagree with both points really.

1. Plant electricians. I don't believe are as stupid as some make out. In the case of this example, even if they don't understand indirect code, a simple description of what it is doing would be suffice.

The code they would be more interested in would be the code using the individual bits once the indirect move was complete, not the indirect move itself.

2. One of the worse examples of software you can come across is software thats attempted to be ported from one PLC type to another.

All the different manufacturers have their strong points, trying to write code that easily ports from one to the other would end up not using any of them.

How do you port your exampe to Control Logix that has no flags as such.

Its better to write to the same specification and to each PLC's strengths.
 
Im was trying it, it is easy and understandable, thanks.
....and functional !!!


SimonGoldsworthy said:
To reference bits of a variable declared as a word use indirect addressing as follows. If you use the hardcoded L address, this may change if you add another variable in the future.

Code:
	 LAR1 P##TempWord
	 A	 [AR1,P#0.0]
	 A	 [AR1,P#0.3]
	 =	 M	 10.2
 

Similar Topics

Hi all. I use kepware opc to read data from Matlab, it works fine. Now i want to move these data to step 7, how can i read data from OPC to step 7...
Replies
2
Views
3,252
I am using SFC 59 to read data using DPV1 from a PROFIBUS slave to a PLC. My problem is the length, I know the RET_VAL holds error code or read...
Replies
0
Views
1,933
I'm trying to read out a Meinberg GPS-clock to sync the time on my plc. Now I have following problem: I have no physical room to place a...
Replies
3
Views
2,954
Hi.I'm quite new in this field and I allready have a problem. I'm working with an Simatic S7-300(CPU 313C-2DP)and a 3UF5 SIMOCODE-DP.The simocode...
Replies
5
Views
7,176
This is the first time I am working with Simatic Manager Step7 as I started my siemens journey with TIA which is pretty easy and do a lot of stuff...
Replies
3
Views
158
Back
Top Bottom