Step7. Calculating of quantity of bottles (trays)

Just I have found my mistake. In FC17 I used Call SFC20 "BLCMOV" and I passed to it wrong parameter SRCBLK:=P#DB5.DBX0.0 byte 2928 but DB5 have length only 480 byte. Therefore I get RET_VAL W#8122 (In helpsystem of Step 7 there is not this value).
 
Why is it that we always have to jump through hoops to do a simple thing like grabbing the PLC time hour when working with S7. Most projects I work on are municipal and they actually specify "MUST USE LADDER LOGIC ONLY". Yet when I work with Siemens it's inevitable.
 

Similar Topics

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
146
When you download a DB, the values get overwritten by what is in the "actual" column in offline DB. Does this happen at the start of the PLC...
Replies
6
Views
143
Hello Inside a FB, I´m trying to transfer a string from a DB to a IN_OUT var that was define as a UDT. The problem is that i can´t determine the...
Replies
4
Views
138
Hi all, I am trying to convert RSLogix 5000 program to Step7. I need to bit shift left my array of double integers for tracking the product on...
Replies
2
Views
525
I have a word in some DB which I want to load to AR1 and use as a pointer. In order to do this I need to write L DBxy.DBW xy SLD 3 LAR1 I...
Replies
3
Views
543
Back
Top Bottom