Host Engineering Forum
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 22, 2012, 03:43:26 pm


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: DL06 -CMPV  (Read 398 times)
malcolm58
Newbie
*
Posts: 5


« on: October 19, 2010, 02:35:55 pm »

Hi,
I am having trouble with CMPV.
In the first stage I load an “A” in two separate V memory locations using a VPRINT command.
In the second stage I compare the two v memory locations, and when they are equal or unequal I can not get the SP61 to change.
Do you have any ideas as to what I am doing wrong?
Ultimately I want to read [AIN] from a computer and compare the characters.
Malcolm58
Logged
b_carlton
Internal Dev
****
Posts: 388



WWW
« Reply #1 on: October 19, 2010, 02:55:25 pm »

Are you looking at the state of SP61 directly? Are you passing it to a 'C' bit? If you are using an OUT command in a stage then it may be turning off as the stage is exited. Try this:

In the first stage load the two 'A' registers and also do a reset (RST) of the 'C' bit used.

In the second stage have the true state of SP61 SET that C bit. The view the C bit.
Logged

An output is a PLC's way of getting its inputs to change.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM