Writing and reading bits from\to Word
It's my first post on this forum, so maybe I haven't noticed a post answering to my question, if it have been already written. I've read posts of using Zenon Logic and Combined elements etc. to read bits from word, but it haven't solved my issue if I want to use bits to other elements. We have a lot of systems installed in our customers installations, mostly based on our own standards of communication layer (I mean communication drivers) and iFix. Now we've changed a software platform to Zenon. We would like to upgrade a few existing iFix's to Zenon. The data, which We read from our communication software are 16-bit words, which have binary coded meaning.for example(0 bit - ON, 1bit - OFF, 2bit - interlock for On, 3bit interlock for Off, 4bit - outgoing imp. ON, 5bit - outgoing imp. OFF etc.). There is no possibility to read or write to bit by bit from our driver, but only whole words. So I would like to use OnlineContainer with BulkMode to read those whole words by means of Zenon's external driver and to cast it to Zenon's internal variables, which are a type of structures and contain 16 variables a type of bool and are named symbolically. Let say, I will have about 20 000 variables, wouldn't be too much for Zenon's main thread to process such a big amount of data? How long time spends Zenon casting a 16-bit word to structure, or it's just impossible and we should use simple loop taking every bit of word and equaling it to bool variable during one cycle of loop? Is there any easier way to do that simple task, which for other SCADA's is a piece of cake?
This is a migrated post! Originally posted on 28.01.2015 by user masonpiotr. Please be aware that information can be outdated.
Disclaimer
This document governs the use of our Community Forum. By registering and using the platform, you accept these conditions.
The COPA-DATA Community Forum serves to encourage the exchange of information and experience about the zenon software between forum users respectively zenon users.
Please mind that any published information on the Community Forum is the subjective opinion and view based on the experience and the level of knowledge of the author. COPA-DATA does not overtake any responsibility for the content and the accuracy of the shared information.
Users of the Community Forum are encouraged to share only well-founded experiences and to point out any risks associated with the implementation of proposed solutions to problems. COPA-DATA at its absolute discretion, reserves the right to moderate the forum. In this connection COPA-DATA may remove any information containing false facts, potentially dangerous solutions, bad language or content that may insult, degrade or discriminate others. COPA-DATA may block a non-complying user from forum access if the user violated this provision.
COPA-DATA reserves the right to change this document from time to time at own discretion.
Ing. Punzenberger COPA-DATA GmbH
Karolingerstraße 7b · 5020 Salzburg · Austria
www.copadata.com