Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - kizor

Pages: [1]
1
Technical support / storing dm[] values
« on: June 21, 2009, 02:03:50 AM »
Hi


I have a program running to messuring the time a input is closed
I use therefore 3 dm[]'s and a 1 sec  clock pulse

dm[3]=dm[3]+1          ' count seconds
if dm[3]=60 then
dm[3]=0
dm[2]=dm[2]+1           'count minutes
endif
if dm[2]=60 then
dm[2]=0
dm[1]=dm[1]+1            ' count hours
endif

that works fine but what i want to reach is to store the time every day to 3 other dm[]'s so that i become

if date[3]=1  then store the time to dm[1],dm[2],dm[3]

if date[3]=2  then store the time to dm[4],dm[5],dm[6]

if date[3]=3  then store the time to dm[7],dm[8],dm[9]

and so on .....

Is there a possibility to do this ?
I have tried, but my knowledge is to little to figger this out
I appreciate each tip or aid highly

Thanks in advance
KIZOR

2
Technical support / BLANCO EMAIL send with Xserver
« on: May 30, 2009, 05:54:32 AM »
Hi

I use Xserver to send Email and that works fine till  yesterday.

Now I still received the email's but only

  From
  T0
  Subject

What I mean is that I didn't received  the data in the mail
all I get is a blanco mail.

What could I do to make it work again?


Thanks in advance
Kizor


3
Technical support / SEND EMAIL WITH XSERVER
« on: April 18, 2009, 07:27:45 AM »
HI

I have ceveral custom functions to send out a EMAIL with Xserver and that works great

Only one  custom function to send out a mail at a certain time doesn't work properly
 I always receive 2 email's in stead of 1

(if time[1]=23 and time[2]=59 and time[3]=58 then setio r1 else clrio r1 endif.)

So when r1 is closed the Email is send out but I always receive 2 emails

What could be the reason of this and how could I avoid this
Maybe there is a better way to send out a mail at a certain time.

Thanks in advance
Kizor

4
Technical support / auto 485
« on: January 11, 2009, 07:15:09 AM »
Hi

For quite a time I used the plc comm#1 port to sent out sms messages trought a gsm modem.
The connection between the plc comm#1 and the gsm rs232 port is made by a cross over cable.

Now I will use  comm#3  instead of comm#1 to send out sms

I rewrite the program so that the (sms command) is now send out to  comm#3

I use a auto-485 converter branched with the rs232 port of the gsm modem but it seems not to work to sent out a sms.

Is there someone who knows what I did wrong or any other reason why it doesn't work.

Thanks in advance

Kizor


5
Technical support / interrupt input
« on: December 21, 2008, 02:24:32 AM »
Hi

In My progam I have a counter running that count the power consumption.Therefore I use input #5  and  a counter count's the pulses,when that counter reach his preset value it switch on a other counter en so on so that i become a counter with 7 digits(99999,99)
That works fine but because I loose some counts I try to use the interrupt input
Now input #5  turn on CusFn#1 ( intrdef 3,10,1)
In CusFn#10 I place  ctrpv[9] = ctrpv[9]+1
(counter[9] count's the pulses)

The interrupt input seems to work but the counter doesn't switch over on the preset value but  still count's on.
I have try everything but I can't figger out what I have to place in CusFn#10 so that (counter[9]) switch over on his preset value

Is there someone who can help to figger this out

Thanks in advance
    Kizor

6
Technical support / split print# command in different lines
« on: August 17, 2008, 12:38:39 PM »
hi

Ihave a custom function that trigger a print#1 command to send out a sms with the date and time of a event via a gsm modem.

example:
PRINT #1 "at+cmgs=phonenumber" "event"+str$(date[3])+"/"+str$(date[2])+"/"+str$(date[1])+"      at    "+STR$(TIME[1])+":"+STR$(TIME[2])+":"+STR$(time[3])

Is it possible to sent this out in 4 lines instead of 1 so that I become a sms as following

event
date
at
time

thanks in advance

Pages: [1]