Search the Community
Showing results for tags 'function block'.
Hi all. For a few years, I have been using the HSC frequency measurement on the V350. My program uses the example that was given by Unitronics and I have not altered it much. Suddenly, my programs have stopped working when I download them to a new PLC. The HSC behaves unusual and gives me false readings. My program is to control micro water turbines and it uses HSC to measure the frequency of the generator. I am using a simple frequency converter that gives me pulses into my HSCO port. The pulses are 50Hz and I confirm using a digital meter that the input receives 50Hz.
While using the vector store function, the data will not be stored into any vector if the offset is zero. Is this working as intended? Doesn't seem to make sense that you can't index into the vector that is your starting address. Anyone else experience this and have a work around? Running V570 9.8.2 Attached is a snippet of the code where I am having the issue. The first function is checking that we're in the correct state of our state machine, the second is verifying that data is being sent. From there I take the vector of inputs and store the data in a temporary MI then attempt to st