adccommunitymod (AutomationDirect) asked a question.

Data Log Discrete Status?

Created Date: June 07,2012

Created By: flux70

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

DL06 and EA7-S6M touch screen. Data logging several real values in C-More, etc. Specifically data logging a pressure value every 15 minutes in a gas delivery system. Client would like to know what valve is on each time it writes a log of the pressure. I have 8 injection valves total that run sequentially for a pre-programmed amount of time. I control the valves with a v-memory word configured in the c-more for all 8 configurable steps. after programmed by operator the word is written to another v-mem location to be called upon when that step is active. each bit in that word equates to a c relay which opens the physical y output for each valve in an instruction. So obviously I cannot use the word in the pen assignment field as each bit is discrete value. Any ideas on how this could be done? Possible?


  • adccommunitymod (AutomationDirect)

    Created Date: June 07,2012

    Created by: Bob S BN

    Perhaps I don't quite understand the problem, and I haven't tried to read or write bit of word from a cmore, but since you say you can write it, why can't you read it and log it?

    Or, when you say LOG it, do you mean Graph it? Perhaps you could add a bit of logic in the PLC to extrapolate the "bits of word " and write a value of 1-8 in BCD to another vmem just for graphing and logging.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: June 07,2012

    Created by: flux70

    Too much information I suppose.

    Line trend graph screen. Setup to log pressure. When client opens log file to view, he wants to see the valve that was in operation each time it wrote a value with the date/time stamp.

  • adccommunitymod (AutomationDirect)

    Created Date: June 07,2012

    Created by: flux70

    Perhaps I don't quite understand the problem, and I haven't tried to read or write bit of word from a cmore, but since you say you can write it, why can't you read it and log it?.

    Because in the line trend graph screen under pen assignments discrete values are not allowed.

  • adccommunitymod (AutomationDirect)

    Created Date: June 08,2012

    Created by: Bob S BN

    When client opens log file to view, he wants to see the valve that was in operation each time it wrote a value with the date/time stamp.

    Perhaps you could add a bit of logic in the PLC to extrapolate the "bits of word " and write a value of 1-8 in BCD to another vmem just for graphing and logging.

    To further the idea...

    Using SP1 (always on) and if valve 1 (Y1?) is on, LD k1, out V3333,

    Using SP1 (always on) and if valve 2 (Y2?) is on, LD k2, out V3333,

    etc...

    V3333 will then always contain the current valve that is open as a BCD numeric value.

    Then go to the graph and log V3333 at the same time you log your pressure values.

    If you want to see it on the graph as well, you may want to choose some other useful values (ie... 1001,1002, etc) to fit the scaling of the graph.

    Hope this helps,

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: June 08,2012

    Created by: Bob S BN

    Using SP1 (always on) and if valve 1 (Y1?) is on, LD k1, out V3333,

    Using SP1 (always on) and if valve 2 (Y2?) is on, LD k2, out V3333,

    etc...

    To further simplify, you may be able to put each LD K_, OUT V3333 right below the OUT Y_ for each valve output.

    Out Y1

    LD K1

    OUT V3333

    Also, to clear the V3333 value, you will need logic to check and if none of the valves are on, LD K0 OUT V3333.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: June 12,2012

    Created by: flux70

    Thank you! Sometimes the simplest solutions are right under our nose.

  • adccommunitymod (AutomationDirect)

    Created Date: June 07,2012

    Created by: flux70

    DL06 and EA7-S6M touch screen.

    Data logging several real values in C-More, etc.

    Specifically data logging a pressure value every 15 minutes in a gas delivery system. Client would like to know what valve is on each time it writes a log of the pressure. I have 8 injection valves total that run sequentially for a pre-programmed amount of time.

    I control the valves with a v-memory word configured in the c-more for all 8 configurable steps. after programmed by operator the word is written to another v-mem location to be called upon when that step is active. each bit in that word equates to a c relay which opens the physical y output for each valve in an instruction.

    So obviously I cannot use the word in the pen assignment field as each bit is discrete value. Any ideas on how this could be done? Possible?

    Expand Post