12/16/2020 3:12 AM | |
Joined: 10/7/2005 Last visit: 11/19/2024 Posts: 3027 Rating: (1057) |
Hi Tonk an S7-300 kept the number of the last open DB in the DB Register when a Block is called. An S7-1500 does NOT and instead writes a 0 into the DB register upon a block call (see pic which is from the pdf at Entry ID 67655405). Your code snippet (which wants to save the AR and DB register value) is thus on the one hand not working as before anymore and the compiler on the other hand complains that you haven't (explicitly) opened a DB yet. The main reference to check out for these type of migrations is Entry ID:67858106 |
Cheers |
|
This contribution was helpful to1 thankful Users |
Follow us on