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.


Messages - tobor0216

Pages: 1 [2]
16
Technical support / Re:Time based events
« on: July 19, 2009, 11:46:17 AM »
Here is the code I am using

IF (TIME[1] >=7 AND TIME[2]=59 ) OR (TIME[1] <=15 AND TIME[2]=59) then
    CLRIO PWR_COMP
Else
   Setio PWR_COMP
Endif

17
Technical support / Re:Time based events
« on: July 19, 2009, 11:40:34 AM »
I can clear the IO's at 08:00 am, but I can not set them at 16:00. Or the other way around.

18
Technical support / Re:Time based events
« on: July 19, 2009, 11:38:34 AM »
Gary,

Thanks for the code. I am not sure how to fit it into my routine, as I am trying to turn to outputs (PWR_TV and PWR_COMP) off at 08:00 and back on at 16:00 pm. Both outputs will be on over midnight.

19
Technical support / Re:Time based events
« on: July 18, 2009, 07:02:14 AM »
I tried what is listed below, and am still having problems. First problem is when the RTC reaches 7:59:59, it rools over to 7:59:00 and then continues counting to 7:59;59, at this point the RTC jumps to 8:01:00.

Secondly the IO's are not being cleard at the 8:00:00 mark. Below is the code I am using. I added the TIME[2] event to try and make this work, but no luck.


IF (TIME[1] >=08 AND time[2] =01 and TIME[1] <=16 and Time[2] =01)
  CLRIO PWR_TV
  CLRIO PWR_COMP
Else
  SETIO PWR_TV
  SETIO PWR_COMP
ENDIF

20
Technical support / Real time clock and day
« on: July 17, 2009, 03:14:12 AM »
I have a FA1616-BA controller,and I am wondering how I can control a I/O based on the day of the week. For example I want to set or clear I/O's Monday through Friday, but on Sat and Sun I do not want to do abything with the I/O's?

21
Technical support / Time based events
« on: July 17, 2009, 03:12:34 AM »
I am trying to turn a I/O off at a certian time, and turn it back on at a certian time. My code is below. The controller does not either clear or set the I/O at the specified time.

If Time[1] and Time[2] => 800 then
Clrio XXXX
Clrio YYYY
Endif

If Time[1] and Time[2] => 1600 then
Setio XXXX
Setio YYYY
Endif

22
Technical support / Re:ADC
« on: June 08, 2009, 08:39:10 AM »
I have a T100MD888+ PLC, and I have the sensor connected to the 5VDC and Gnd pins on the ADC connector.

23
Technical support / Re:ADC
« on: June 08, 2009, 03:05:59 AM »
The sensor is connected to pin 7, and I have measured the voltage. The voltage is reading .78. I tried this on ADC's 1-8 with the smae result.

24
Technical support / ADC
« on: June 07, 2009, 03:09:29 PM »
I have a temp sensor connected to ADC(2). The output of this sensor is linear between 0-1 volts. For example if it is 75 degrees, the sensor will read .75.
I am trying to read the sensor and store it in DM[101]. The calculation I am using is DM[101] = (168*(ADC(2)-261)/1376+32) and I am reading it every second. The problem I am having is the reading just keeps increasing until it reaches 4092. How can I prevent this from happenig. I just want to read the sensor every second and display it on a HNI.

Pages: 1 [2]