Hello,
Since non-blocking delay is not available for AIPx I am looking for some guidance in programming.
I have AIP3 monitoring AC mains voltage via a wall wart. The value is of AIP3 is converted to a single digit number (1-4) and added to ram and sent.
The programming I have is working very well but I would like to delay the single digits from changing for 5 or 10 seconds.
Here is the snippet of code for AIP3
MOD VAR2 10 RAM1
TSTLE AIP3 74
SET RAM1 1
TSTGE AIP3 75
SET RAM1 2
TSTGE AIP3 107
SET RAM1 3
TSTGE AIP3 129
SET RAM1 4
Unfortunately all ram and variables are used for other storage used throughout the program. I thought about using the one OP7 that is not used but non-blocking won’t work the way I want it to. I have a couple of IPx which are not used, the one OP7 which is not used and the URAM which is not used.
Thanks,
Tim
Since non-blocking delay is not available for AIPx I am looking for some guidance in programming.
I have AIP3 monitoring AC mains voltage via a wall wart. The value is of AIP3 is converted to a single digit number (1-4) and added to ram and sent.
The programming I have is working very well but I would like to delay the single digits from changing for 5 or 10 seconds.
Here is the snippet of code for AIP3
MOD VAR2 10 RAM1
TSTLE AIP3 74
SET RAM1 1
TSTGE AIP3 75
SET RAM1 2
TSTGE AIP3 107
SET RAM1 3
TSTGE AIP3 129
SET RAM1 4
Unfortunately all ram and variables are used for other storage used throughout the program. I thought about using the one OP7 that is not used but non-blocking won’t work the way I want it to. I have a couple of IPx which are not used, the one OP7 which is not used and the URAM which is not used.
Thanks,
Tim