S7-300 Check if DB is defined

Join Date
Feb 2008
Location
Walnuc Creek, CA
Posts
31
Hello,

I'm trying to write a modular function that will be used by others. The function takes a datablock number as an integer, opens the datablock, and performs some operation with the data inside. I'd like to make my code good enough where if the user of the function provides an invalid datablock my code will catch the error before issuing the OPN instruction. Is there a way to check if the DB exists before doing the OPN?

Thanks.
 

Similar Topics

in allen bradley kinetix 300 drive first E31 error shows after resting drive E11 error occurs need solution to reset E11 fault code
Replies
4
Views
147
Hi, I'm setting up a modbus master on an S7-300. It seems to work in OB1 but not when I use it in OB35. Does anyone have any ideas why? Could...
Replies
10
Views
123
So basically i have 2 queries : 1. I have a program file of S7-300 PLC which i want to migrate in RSLogix500.In short i want to convert my simatic...
Replies
15
Views
285
Hi i using Kinetik 300 2097 driver control by EIP with using move absolute and incremental for motion , but i want to add same driver and motor as...
Replies
0
Views
74
Hey all, first time poster here. I am wondering if anyone has tried using a Keyence SR-X300 barcode scanner to a Micrologix 1400. Keyence sent...
Replies
0
Views
85
Back
Top Bottom