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

Pages: [1]
1
Technical support / Setting a input equal to a DM value
« on: July 15, 2008, 04:12:43 PM »
I have a input labeled Night, and I wold lke to set it equal to a DM vaule  so I can turn it on and off via steeing the value of the Dm via a HMI panel. Can someone show me how to do this?

Thanks,

Paul

2
In the example below you state that I must call this custome function three times duriong the first scan. By doing this it reads the intial values into the DM, but does not update the value.

I have tried calling this in the first DM, plus in a second custom function, but I still can not get a steady value. The value from the temp sensor is rock steady.

Below is the code I am using in the custom function.


DM[101+K] = (168*(ADC(8)-261)/1376+32)
K = (K+1) mod 5
B=(DM[101]+DM[102]+DM[103]+DM[104]+DM[105]+DM[106])/5
B=(B+2)/4*4
DM[1]=B

3
Technical support / Moving average of 3 or 5 samples as your final result.
« on: November 17, 2006, 05:13:56 PM »
Can someone show me how I can sample a ADC input, and average the reading, then write to a DM location?


Thanks,

Paul Stiles

4
Technical support / Show Decimal point from A/D onverter
« on: November 16, 2006, 09:58:24 AM »
I am using ADC(8) to sense temperature with a LM34 sensor. Currently my display toggles between two readings when the output of the lm34 sensor is reading XX.5 and above. For example if the lm34 is reading 76.6 (measured with a volt metter at the data in pin) my HMI display toggles between 76 and 77 degrees. How can I stop this from happening, or can I display the the entire reading, such as 76.6?


Thanks,

Paul

5
Frequently Asked Questions / Re:Starting and stoping a timer in a CusFN
« on: November 12, 2006, 07:18:27 PM »
This would trun the furnace off after 10 sec. What I need is to know how long the furnace is running, I.E a total run-time timer. A run-time timer is cumulative.

6
Frequently Asked Questions / Starting and stoping a timer in a CusFN
« on: November 12, 2006, 05:51:24 PM »
I need to use a timer as a total run-time timer. I need to start it when my furnace is first turned on and stop it when the furnace is turned off. I am starting ans stoping the furnace from with in a CusFN by setting and clearing a bit. Can someone tell me how I can accomplish rhis?

Thanks

7
Technical support / RS485 2 wire to RS485 4 Wire
« on: November 06, 2006, 06:57:08 PM »
Can you please tell me how I can connect my 4 wire touch panel with the following connections to the two inputs on your T100MD888 plc?

TXD+
TXD-

RXD+
RXD-

8
Technical support / ADC(8) Modbus Address
« on: November 05, 2006, 06:56:03 PM »
Can you please tell me the Modbuss address for ADC(8). I am trying to display the value of the port on a HMI device that is conected via RE485. I can display the plc time using address's 40513-40515, but in all the paper work I have it says nothing about the addresses for ADC(1)- ADC(8).

Thanks

9
Technical support / Re:Increment / Decrement a variable
« on: October 30, 2006, 05:00:46 PM »
After hours spent trying to put all the parts together, I have failed. I can get the variable to increment / decrement, and turn the correct relay on and off based on the temp. The problem I am encountering is when I try to incorporate this code into my existing program that allows me to select either Heating, Cooling, Ventilation or System off, the variables to not increment. Can someone post a small program that I can follow to understand where to place the code to get the desired affect?

Thanks

10
Technical support / Re:Increment / Decrement a variable
« on: October 28, 2006, 09:43:49 AM »
What I am attempting to do is use a HMI and plc for a thermostat. I have the HMI that is sold be Triangle Reasearch. I want to use one button to increase the temperature, and another button to decrease the temperature. Run I run the code in a CusFN, and I set variable b=72, I can increase the value of variable B, but when the code returne to to top, the variable is reset.

Thanks

11
Technical support / Increment / Decrement a variable
« on: October 27, 2006, 05:19:22 PM »
I am trying to increment and or decrement a variable. The variable is the desired temperature. The problem I am having is when I execute the following CusFN, the variable is always reset. How can I set a global variable?

A=72
B=A
If testio(Increase) then A=A+1
else
If testio(decrease) then A=A-1
endif
endif
setlcd 1,1,STR$(a)

12
Technical support / Stoping and Restarting a Sequencer
« on: October 22, 2006, 06:18:22 PM »
Can someone please tell me how to from within a custome function, stop a sequence, and then at then restart it at the end of the custom function?


Thanks

Pages: [1]