citect tag problem!

saloo4pro

Member
Join Date
Jan 2013
Location
pakistan
Posts
2
Dear Sir i am new to citect, i am using Unity pro, with derived function blocks(that saves a lot of time for making logic) having derived data types , means structured tags, (have words, int, bool etc) with address %MW, while linking tags, this tag was not recognized in citect. I have following questions:

1. How to map Unity already created structured tag to citect (no array), i need to have the same structure at the same %MW (4000xx ,in citect )?
2. if i have sent one MW word, how to access the one bit from that word, i need to read that bit(digital in citect) so that i can turn on Lamp on individual bits of a word? for example MW1 in unity sent to citect 40001, in lamp appearance , Turn On: When (?) = 1; ? is my question?
3. Is it possible to access each bit read of structured tag(some how if possible to define in citect) ?
4. If I have sent Array in unity pro A[0] at %MW1, A[1] at %MW 2 and so on, In citect i have this tag successfully imported, how to read a specific array word bits to turn on a lamp condition?
5. How Cicode tag is created, if structured, then how?
 
Access individual bits of a Modbus word in Citect

There is two ways of accessing individual bits of a word value in Citect.

1) Use BITAND function to compare value of a individual bit with predefined value
eg. WORD 1 BIT 0;
MyBOOLTagValue = (TagWord1 BITAND 1);
eg. WORD 1 BIT 4;
MyBOOLTagValue = (TagWord1 BITAND 8);



2)Configure Citect Modbus tags if you are using Modbus to acces individual bits of a word.
If using Modbus TCP and MODNET protocol, you can create individual tag to access WORD 1 BIT 0.

Variable Tag Name: Word1Bit0
Cluster:"Your Cluster"
I/O Device Name: "Your I/O Device"
Address: 40001.1 (notice addres position 1 for bit 0)
Data Type: DIGITAL

Check Citect Knowledge Base, for more info on configuration of your driver.
 
Last edited:

Similar Topics

I'm having a problem creating variable tag array in Citect SCADA V7.40. I looked every possible help, user guide... but no matter how i set...
Replies
2
Views
4,715
First of all; hi everybody! I'm new to this forum and the plc programming. I just started out using plc's and i have found some answer on this...
Replies
1
Views
1,578
Hiya guys, I have a strange problem with a new customers citect program. (The program has 4000+ tags) When i try to assign a variable tag to a...
Replies
3
Views
7,603
Hey, I'm trying to do the following, I have some experience with Citect but can't seem to figure this out. I/O Tag: BoxPos1_ProdNum (Data Type...
Replies
0
Views
556
Greetings, How can I create some structure tags that are similar to the ones seen in SIMATIC WinCC Tag Management section? Or does Citect SCADA...
Replies
0
Views
1,159
Back
Top Bottom