Hi, I need some help/have questions regarding WC8.
I purchased the board with firmware 3.03.19; did some PLC programming; it looks like most of the stuff work except few things.
In order to debug the program I need to understand few things:
1. In my application, 2 events occur simultaneously (heater ON, then current sense that heating element is ON) so 2 notification emails should be sent almost at the same time. The program send one email for each event.
In fact, I get 2 the same emails with delay of 5 seconds one from another (that from the current sense); I do not get email that heater turned ON. It is strange, because that email should be sent at the same time with switching OP1 to 1 (turning the heater ON); it is just one line after another in PLC program. In fact, I do get OP1 to 1 but do not get the email!
Here is that portion of the code:
BNZ RAM1 LOOP1
SET RAM1 1
EMAIL EM1
SET OP1 1
DELAY 2000
GOTO LOOP1
There is no other place in the code where OP1 set to 1. But SET OP1 1 line works, whereas EMAIL EM1 does not!
All emails setup correctly; test emails work (I get email when I test EM1). In the manual I read that WebControl internally only has queue for up to four emails; If PLC logic made such a call too fast, the newer email will overwrite the older ones in the queue. But there are only 2 emails, so in theory it should work?
2. Output 1 controlled by PLC program. If I set the status of output 1 manually via web interface, will it terminate the PLC program? If not, how can I make the PLC program to take into account that I manually changed OP1?
3. If there any command to re-boot the Webcontrol from internet? There is no such possibility in a web interface; it would be nice to have one. I understand there is a command to reboot in PLC command system but I am talking about re-booting via web interface or command from outside (internet).
4. In the spec there is written that the maximum current that can be sourced or sinked by one of these outputs at a time is 20mA. But in fact, outputs cannot even drive ULN2003 input! To control relay from output 1, I had to use MOSFET.
5. I tried to use UROM1 value as a non-blocking delay but it did not work: that entry was deleted from the program after uploading into PLC.
Here is what I tried:
TSTEQ IP1[UROM1] 1
I set a number in urom1 in general setup page. But after uploading into PLC, [urom1] erased from the program; it became: TSTEQ IP1 1
Is that normal? If yes, please add possibility to set the delay as urom1 variable.
Thanks!
I purchased the board with firmware 3.03.19; did some PLC programming; it looks like most of the stuff work except few things.
In order to debug the program I need to understand few things:
1. In my application, 2 events occur simultaneously (heater ON, then current sense that heating element is ON) so 2 notification emails should be sent almost at the same time. The program send one email for each event.
In fact, I get 2 the same emails with delay of 5 seconds one from another (that from the current sense); I do not get email that heater turned ON. It is strange, because that email should be sent at the same time with switching OP1 to 1 (turning the heater ON); it is just one line after another in PLC program. In fact, I do get OP1 to 1 but do not get the email!
Here is that portion of the code:
BNZ RAM1 LOOP1
SET RAM1 1
EMAIL EM1
SET OP1 1
DELAY 2000
GOTO LOOP1
There is no other place in the code where OP1 set to 1. But SET OP1 1 line works, whereas EMAIL EM1 does not!
All emails setup correctly; test emails work (I get email when I test EM1). In the manual I read that WebControl internally only has queue for up to four emails; If PLC logic made such a call too fast, the newer email will overwrite the older ones in the queue. But there are only 2 emails, so in theory it should work?
2. Output 1 controlled by PLC program. If I set the status of output 1 manually via web interface, will it terminate the PLC program? If not, how can I make the PLC program to take into account that I manually changed OP1?
3. If there any command to re-boot the Webcontrol from internet? There is no such possibility in a web interface; it would be nice to have one. I understand there is a command to reboot in PLC command system but I am talking about re-booting via web interface or command from outside (internet).
4. In the spec there is written that the maximum current that can be sourced or sinked by one of these outputs at a time is 20mA. But in fact, outputs cannot even drive ULN2003 input! To control relay from output 1, I had to use MOSFET.
5. I tried to use UROM1 value as a non-blocking delay but it did not work: that entry was deleted from the program after uploading into PLC.
Here is what I tried:
TSTEQ IP1[UROM1] 1
I set a number in urom1 in general setup page. But after uploading into PLC, [urom1] erased from the program; it became: TSTEQ IP1 1
Is that normal? If yes, please add possibility to set the delay as urom1 variable.
Thanks!