GCBAutomation Member G Join Date May 2013 Location US Posts 4 Oct 28, 2018 #1 Hi... dumb question: if I scale an analog input in the module properties, do I need to create a new tag or can I just use the controller tag for that module input... thanks...
Hi... dumb question: if I scale an analog input in the module properties, do I need to create a new tag or can I just use the controller tag for that module input... thanks...
Ken Roach Lifetime Supporting Member + Moderator Join Date Apr 2002 Location Seattle, WA Posts 17,500 Oct 28, 2018 #2 In general, you just use the ordinary Input data tag, since it contains the scaled result value you want. Another common technique is to make a tag with a purpose-specific name, and make it an Alias to the Input data tag. That way in the rest of your program you can reference "SandPounder_Thrust_Bearing_Temp" instead of Local:1:Input.Data[0].
In general, you just use the ordinary Input data tag, since it contains the scaled result value you want. Another common technique is to make a tag with a purpose-specific name, and make it an Alias to the Input data tag. That way in the rest of your program you can reference "SandPounder_Thrust_Bearing_Temp" instead of Local:1:Input.Data[0].
rdrast Lifetime Supporting Member Join Date Apr 2003 Location South Carolina Lowcountry Posts 5,544 Oct 28, 2018 #3 Or, aside from an alias as above, dedicate a specific routine just to scanning inputs, and copy the tag to an internal value. I find this the best, as for testing, even without IO, you can just not scan that input routine, and manually set all values however you like.
Or, aside from an alias as above, dedicate a specific routine just to scanning inputs, and copy the tag to an internal value. I find this the best, as for testing, even without IO, you can just not scan that input routine, and manually set all values however you like.
Firejo Member Join Date Jun 2008 Location Redmond, WA Posts 1,507 Oct 29, 2018 #5 SandPounder_Thrust_Bearing?