Setting OPx on based on time of day

On the status page the values for OP are characters instead of numbers when using them as variables,
Any work around?
thanks
 
rossw said:
Hmm, I just "found" a bunch of additional memory.
 
 

START    
    SET OP1 CS  
    SET VAR1 OP1  
    ADD 60 CS OP2
    SET VAR2 OP2  
end

 
Also some "bugs".
If you try to write numbers over about 128 to an output, it seems to break things.
 
Inside PLC code, the output status is not character, but number value stored on each variable.
If you have latest firmware, you can reference to all the output through ALLOUTS, it is a byte value represent all the output in a byte.
 
CAI_Support said:
Inside PLC code, the output status is not character, but number value stored on each variable.
If you have latest firmware, you can reference to all the output through ALLOUTS, it is a byte value represent all the output in a byte.
thanks, for the info.
and v03.02.15 also omits the values being > 1 when emailing the status :-(
For storing values > 127, I'm using another bit for the multiple of 127
I would be very ready to buy more newer WC but the shipping fee is prohibitive.
 
Efried said:
thanks, for the info.
and v03.02.15 also omits the values being > 1 when emailing the status :-(
For storing values > 127, I'm using another bit for the multiple of 127
I would be very ready to buy more newer WC but the shipping fee is prohibitive.
I am afraid 3.02.15 firmware does not have ALLOUTS.  You can send board in for firmware update, which will have a lot new features from 3.02.15.
 
If you ship to address is safe to receive mail package, you could request seller to ship you regular mail.., we know some countries like Italy package always got lost, but most other countries, especially Germany, we can just ship regular mail and never get lost.  Actually ship package with tracking is slower in Germany, since they will not deliver it and waiting receiver to pick up.
 
in the meantime any hints for interpreting this?
 
TTL Output Bits
1 0 � � 0 2 6 0
a.  is 127 the highest feasible value?
b.  is there a mapping table between character and number ?
thanks
 
TTL output bits should be zero and one, which screen did you get this value?  It will be helpful if we can see a screen capture.
It sounds like you are trying to use an ASCII table entry for something.  Please note in the PLC logic, firmware versions without ALLINS and ALLOUTS does not support number greater than 1.
 
Hmm I'm refering to Rossw' findings, the ttl outout may serve as additional memory, may be not for older versions. My copy and paste is from the status psge.
 
Efried said:
Hmm I'm refering to Rossw' findings, the ttl outout may serve as additional memory, may be not for older versions. My copy and paste is from the status psge.
 
Yes, I never got any suitable response to my queries about that - it's my belief that there are a number of bits stored for each output beyond the actual output bit itself - but without knowing what they are and under what conditions they might change (especially if they can change without you, as the programmer, being aware of it) - I elected to err on the side of caution and ceased any further work on it.
 
It would be a potentially handy place to store an extra bit or two - but only if it's "safe" to do so!
 
It is strange the status screen seeing output number bigger than 1, I am sure your board running was on an older firmware, but I don't remember we had that changed.  Since the status screen is running on Java code to decode the value reading back from board, it is possible your browser's java interpret the data different from IE.  We only tested with IE browser, since Google browser's java is different.  Please note even if the browser displayed them wrong, internally the output is still one bit with correct state.
 
For each output, there is a bit for the current state, and another bit for previous state. In case your have non-blocking delay, we will restore the output back to previous value.  If you do not actually use that output, its state can be used to store something, but that is bitwise space.
 
Hmm, I'm pretty sure that my counting using the OPs is working correctly.
There should at least a truncation of the SET OP procedure to +1 if memory is rendered corrupt increasing OP further.
But again I guess that it is only a waste of memory, taking a byte for storing a bit. That might be behind:
http://docs.oracle.com/javase/1.4.2/docs/api/java/util/BitSet.html
 
CAI_Support said:
Please note even if the browser displayed them wrong, internally the output is still one bit with correct state.
 
Not really, the data structure for each output or input is a bit, defined as Boolean.  There I no chance to store any value other than 1 or 0 on that.
 
Back
Top