
adccommunitymod (AutomationDirect) asked a question.
Created Date: August 01,2015
Created By: Ridgeline Mach
**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****
Had an application, where the value at DS1 had to be converted to a binary output to select the proper recipe to a third party controller. Looked through the programming examples on the technical forum, and found none. Through trial and error, discovered I had to first convert it to a hex value before it could convert to physical outputs (was accustomed to the Domore where you can do almost everything in one command). Anyhow, came up with this. I hope it may help others.
Created Date: June 17,2016
Created by: Msysum
HI Ridgeline Mach,
Thanks i was able to use this in reverse to calculate an integer based on 4 inputs. Saved a lot of code.
marcus
Created Date: June 17,2016
Created by: kewakl
Had an application, where the value at DS1 had to be converted to a binary output to select the proper recipe to a third party controller. Looked through the programming examples on the technical forum, and found none. Through trial and error, discovered I had to first convert it to a hex value before it could convert to physical outputs (was accustomed to the Domore where you can do almost everything in one command). Anyhow, came up with this. I hope it may help others.
Yeah, when you pay ~$50-$150 for a cpu, you just have to expect the bells to be tinny and the whistles to be shrill. But, hey the Click can do things that still surprise me.
i.e. Try doing a text compare contact in PAC Suite.
I learned about the copy to hex when learning about cmore micro buttons and leds
Maybe, if I had your fortitude, I would have posted as you did, so, Thank You.
Created Date: August 01,2015
Created by: Ridgeline Mach
Had an application, where the value at DS1 had to be converted to a binary output to select the proper recipe to a third party controller. Looked through the programming examples on the technical forum, and found none. Through trial and error, discovered I had to first convert it to a hex value before it could convert to physical outputs (was accustomed to the Domore where you can do almost everything in one command). Anyhow, came up with this. I hope it may help others.