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 - tobor0216

Pages: [1]
1
Technical support / Hostlink
« on: April 29, 2011, 04:36:05 PM »
I have been working with Shaun from tech support, and he has been great, but I am having some trouble getting started.

I am trying to connect an Elk M1 gold security panel to a Maple Systems 550H HMI. Since I cannot directly connect these 2 devices, I decided to use an F1616-R.

The devices will be connected via TCP/IP, and communicate via ASCII protocol.

Would it be possible for someone to provide a example to get me started. Below is what I have that does not seem to be working correctly.

PRINT #4 "<TCPCONNECT 192.168.1.101:2101>"

FOR I = 1 TO 10000
 C$ = INPUT$(4)

 IF LEN(C$) > 0
  D$ = C$
 Endif

Print #4 "</>"

2
Technical support / Counter
« on: May 31, 2010, 10:44:37 AM »
I am trying to sense to many time per day my air conditioner runs. I installed a switch in the duct work that has a paddle in it. When the fan turen on the switch is made. The switch is made until the fan turns off.

I want to increment the counter by 1 when the switch is made. The reset the trigger (Input 1) and wait for the next time the switch is mad to increment the counter.

Any Ideas?

I tried the code below


If testbit(Input[1],1)then
C = C+1
Endif

3
Technical support / Setting Variables
« on: January 16, 2010, 06:06:13 AM »
I have a time of day based custom function running. I can turn on and off out puts based on time of day and day of week. I am trying to be bale to override the time of setting by seeing if a input is set. When I compile the program , I get a error stating the name is incorrect.

Code is below.

@10   If RLY[1]=1 goto @90
@20   Else
@30   If Date[4]>=1 and Date[4]<=5 and TIME[1]>7 and TIME[1]<16
@40   CLRIO PWR_TV
@50   CLRIO PWR_COMP
@60   CLRIO SPARE_1
@70   CLRIO SPARE_2
@80   Else
@90   Setio PWR_TV
@100  Setio PWR_COMP
@110  ENDIF


4
Technical support / Setting a DM location = to a counter value
« on: January 11, 2010, 03:26:52 PM »
I am wondering how to set a DM location = to a counter. The reason I am looking to dp this I want to read my counters into a mDM location in case of a pwr failure, I can then write them back to the counters and I do not lose any information.

Thanks Paul

5
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?

6
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

7
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]