http://cocoontech.com/forums/topic/24995-pull-up-resistor-wiring/
Hello All,
I accidentally posted the above questions to the wrong forum, I received some help, but not enough to fix my issue.
Basically i wanted to know how to hook up a resistor so it stops sending more than one email every time someone used the keypad to open the door.
Now after installing the resistor, I get continuous emails one every second. The keypad still works, when the correct code is entered, but just sends email after email.
Below is what I hooked up and the PLC code.
Can someone help me with this further?
START
TSTEQ RAM1 0
CALLSUB SET_OP1
CALLSUB CHK4LOW
TSTEQ OP1[1000] 1
SET OP1 0
TSTGT IP2 0
CALLSUB KEYMAIL
NOP
END
CHK4LOW:
TSTEQ IP2 0
SET RAM1 0
RET
SET_OP1:
TSTEQ IP2 1 RAM1
SET OP1 1
RET
KEYMAIL:
EMAIL EM5
RET
DOORMAIL:
EMAIL EM1
RET
Hello All,
I accidentally posted the above questions to the wrong forum, I received some help, but not enough to fix my issue.
Basically i wanted to know how to hook up a resistor so it stops sending more than one email every time someone used the keypad to open the door.
Now after installing the resistor, I get continuous emails one every second. The keypad still works, when the correct code is entered, but just sends email after email.
Below is what I hooked up and the PLC code.
Can someone help me with this further?
START
TSTEQ RAM1 0
CALLSUB SET_OP1
CALLSUB CHK4LOW
TSTEQ OP1[1000] 1
SET OP1 0
TSTGT IP2 0
CALLSUB KEYMAIL
NOP
END
CHK4LOW:
TSTEQ IP2 0
SET RAM1 0
RET
SET_OP1:
TSTEQ IP2 1 RAM1
SET OP1 1
RET
KEYMAIL:
EMAIL EM5
RET
DOORMAIL:
EMAIL EM1
RET