Back to main page To main FAQ page
 
Home FAQ index    
 


How to create discrete tags in the tag database


This document explains and shows how to create discrete (flag) tags in the tag database.

The tag database contains a list of strings that the user creates. For each string, the user must select what PLC register it should refer to. Tags can refer to 16/32 bit values or discrete (flag) values.

Discrete (flag) tags is used for viewing and setting the status of ON/OFF signals, motors, start/stop


From the File menu select Tag database
Click the New button to create a new tag
In the Tag label edit box, name the tag myflag.

Check the flag (bit) box.
Right click on the flag (bit) box to bring up a list of flags (or bit's). Select bit 4.
The address of this tag is bit 4 of DM32 in the PLC.

Here the tag myflag refers to DM32 in an Omron PLC 
myflag ----> DM32

Discrete (flag) tags are created as ordinary tags. The only difference is that you must check the box on the left of the flag input field. If you right click the mouse at the flag input field a list of flags will appear.

In this example the tag will refer to DM32 bit 4 (flag 4). This tag can only have the value 0 or 1

Click OK to confirm.

 


Home | E-mail | FAQ index

Copyright (c) 1997, 2002 MiDaTek international, all rights reserved.
22-06-06 22:04