View Full Version : TRIPL help for a newbie?
SomeOldGuy
11-10-2008, 09:30 PM
Hello
In a WorkPlacePro program node how would you write to an output of type HwManualModeType ?
The possible values are:
MODE_ENABLE 0
MODE_DISABLE 1
MODE_MANUAL 2
SUPPRESS_ALARMS 3
UNSUPPRESS_ALARMS 4
// And I have:
output HwManualModeType ManualMode
// This links to the controller ok. Now I need to :
ManualMode = ? I dont know how to create the enumerated list.
If this is too basic or a state secret or whatever I apologize in advance. I am simply trying to learn by doing when time allows. I like programming and am proficient in assembly for pic's and so on. The device I am playing with is connected to the network and powered up but not connected to anything that rotates,vibrates,heats up, cools down,ventilates or even shuts off the lights. So no harm as I even have full ghost images of the PC and Jase's
gnomethang
11-16-2008, 04:19 PM
Have you checked the enumeration lists in the Jace/Wpp software?. They often give you the data type that can tell you what the output should look like - I have had to do this on occasion.
I would use the Multistate Output in WPP to define your range on the input side and write that to the output (depending on the snvt type with which I am unfamiliar at first glance.
I have literally just got back in from a weeks golf in Portugal but could take a peek tomorrow if you are still stuck.
Barry
SomeOldGuy
11-16-2008, 04:58 PM
gnomethang,
Thanks for the reply. I had given up hoping for one. I am clearly in over my head. I want very much to learn though. I am responsible for a lot of properties so find my self having to wait days or weeks before returning to a project. I think this was off putting to others I had talked with here in the past. I do everything form fixing ice machines to installing RTU's. But I have Rover and get along with it ok. I have only the one building that uses WPP but I have been able to make changes and install new controllers and so on. I chose this little project because it entails writing code as opposed to just setting parameters in the property pages.
Anyway I have created a container and pasted the applet for the controller into it. And added a program to which I have been adding input and output variables and linking them to the controllers shadow object. Pasting a demux and linking that to see what would happen. GxText's and linking them to error outputs and so on. Basicaly just experimenting. I cant really harm anything the way I have it set up. But I really just dont know enough to get past certain things. I cant for instance figure out how to put the controller into manual mode so I can toggle the outputs. I can link to the inputs well enough and can set them up in the property pages. If I could gain control of the outputs I could eventually write the code to do anything. Which is why I wanted to master this controller. It's generic nature would allow me to use it for other possible tasks in the future.
The only lists I have found (TRIPL Reference R2-1.pdf) did not include the snvt that the controllers data sheet shows. Or I have not interpreted it correctly. Which seems more likely. What I was trying to do is include in the program a "if not manual = true then manual = true" bit of code. Those are just generic terms of course. But I have not been able to get it to work yet. I suppose the general feeling is that I should attend a Niagra course or let somebody else do it. But there is nobody else and I cant take the time off. So assume I am an idiot. I will study what you said. Any clues are very much appreciated. I presume you are referring to some list incorporated into the WPP program or to be found perusing the tree? Your sig is perfect for this group. Thanks again
Tony
gnomethang
11-17-2008, 11:00 AM
I am trying to find info on the "HwManualModeType" snvt - what is the controller type?
Barry
SomeOldGuy
11-17-2008, 03:14 PM
It's a W7761a Thanks a million.
I don't know what WorkPlacePro is, But if you have the webs workbench available and have the lonhoneywellaxwizards in your modules list you can find the control listed in that module and add it to your LonNetwork. The w7761A is also known as the Excel10RIO, add it to your network, expand the controller and double click on points, then do a discover. The inputs and outputs of the RIO are all listed. You can add them to your database and work with them on the wiresheet by adding the componants you need from kitcontrol or where ever. Good luck! The webs classes are great, if you get the chance to attend one, jump on it!:)
SomeOldGuy
11-20-2008, 07:29 PM
Hello rad1
Thanks for the reply. I dont have the things you refer to. What I am trying to do is not conventional I know already. I could use the W7760C to do the job a lot easier. I was just trying to learn. Aparently I dont know enough to be interesting. I pretty much dont know jack. I cant get past the simple matter of telling the device to go into manual mode. The data in the pdf's is no doubt correct but I cant make the code compile with it. I am missing basic knowledge of the tripl language. But thats the fun part. I will figure it out eventually. Or somebody here will relent and help me out. Meanwhile I am learning what does not work at a furious rate. Have a happy
Tony
Hi S.O.G.,
Check this site out. You may find some tutoring here.
http://www.tac.com/us/Navigate?node=10381
SomeOldGuy
11-21-2008, 10:10 PM
Thanks
checkvalve
12-01-2008, 08:40 AM
Not sure if you ever got this figured out or not. Regardless here is the bit of code that you need.
//HwManualModeEnum
//Enable (0)
//Disable (1)
//Manual (2)
//SupressAlarms (3)
//UnsuppressAlarms (4)
output HwManualModeType ManualMode
ManualMode.mode = HwManualModeEnum.Enable
SomeOldGuy
12-01-2008, 05:52 PM
I had not figured it out yet. The holidays interupted my efforts. I tried a lot of variations but I think what you have shown me is not one of them. Thanks a million and I will let you know if I get anywhere.
Not sure if you ever got this figured out or not. Regardless here is the bit of code that you need.
//HwManualModeEnum
//Enable (0)
//Disable (1)
//Manual (2)
//SupressAlarms (3)
//UnsuppressAlarms (4)
output HwManualModeType ManualMode
ManualMode.mode = HwManualModeEnum.Enable
SomeOldGuy
12-02-2008, 05:45 PM
Checkvalve
Thanks man. That worked perfectly. The device nows reads as Manual mode. I can read a room temp using an T770A for testing. However previously I wrote a 1 by :Fan1.value = 1 to the digitalout1 and it read after dynamicaly demuxing the Rio as being true. Now it reads as false though I had not changed anything else.
checkvalve
12-04-2008, 12:05 AM
It has been a long time since I have messed with one of those controllers. It seems like when you put it in manual mode that you then have to write to nviRemoteCommand(0) for DO1. It also depends on how the DO is configured.
SomeOldGuy
12-04-2008, 06:57 AM
Hi checkvalve
I figured it out last night. I had forgotten reading somewhere long ago that you needed to write a word value of ffff to a float to make it true. I did that and sure enough. My next task is to read the digital inputs and verify that works then I can create the algorithm that makes use of all this data and toggles the outputs. One thing I have been unable to discover is whether or not to use the "applicationless" or other choices in the property sheet.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.