Is it possible to give comment to a boolean variable opened from a DB....Siemens PLC

drspanda

Member
Join Date
Oct 2005
Location
Damanjodi
Posts
155
Dear All,

I have a FB where I have opened a DB in it...I want to give comments to the variables (BOOL) which are used in the FB..

For example:

OPN #burner_DB

A(
O #pb_br
O DBX 0.1
)
FP #fl_pb_1
= #pb_on_shot

I want to give a symbol/comment on DBX 0.1...is it possible is step 7?
 
No, I'm afraid not. The best you can do is add a comment after the instruction:

A DBX1.0 //This is a start button

edit: Something else you could do if scan time is not an issue is pass this bit to a local variable, use the local variable symbollically, and then pass it back at the end of the function:

A DBX1.0
= #StartButton
.
.
.
.
A #StartButton
= DBX1.0
 
Last edited:
Pass the boolean in as a parameter to the FB, the parameter will have a name. When passing in the parameter, use DB1.DBX0.1 (for example) which can also be given a name when declaring it in the DB.
 
If you put a name on the DBX you can change your code,save it and to display it correcly. Delete OPN #Burner_DB and where you want to use the bool, type it as Burner_DB.WhateverDBX

The comment and absolute address will display to the right if it is selected in "Options"
 

Similar Topics

Hello All, I need the ability to remotely reboot a Red Lion CR3000 HMI. Due to some graphics issues when the database is updated the HMI must be...
Replies
4
Views
218
Hello The plant is running and there is no shutdown nowadays therefore I can add 1734- AENTR and its card while PLC is in Run? I do not wanna...
Replies
8
Views
346
Folks, I have a client with an old ABB Advant / MOD300 system (v14.4). Around y2k I installed the ABB Industrial IT MOD300 OPC Server 1.1/2...
Replies
1
Views
178
Hi all so i have a robot project im working on were i need to set the layers. using the hmi screen i would like to use the numeric data display to...
Replies
11
Views
821
I have a FactoryTalk View Se project, Is it possible to export Direct Reference tags to edit in a CSV file or Excel? I know I can export HMI...
Replies
1
Views
288
Back
Top Bottom