5092
« on: July 10, 2013, 07:07:36 PM »
Lee
The best approach to achieving some pre-processing is to modify the BasicLabel.vb code. In the subscribing section of the code, you will find PollDataReturned**** subroutines. That is where the data that comes back from the driver is pushed into the corresponding properties. You can also pre-process in the Text Set property. I have actually done something very similar on the particular job this screen shot came from. I added a property named "ShowInTimeFormat", then in the Text Property Set routine I check if that property is true. If so, I format the value before it is written to the Text property.
There are other methods of doing this that I recommend to non-programmers that are easier, but not nearly as clean. For example, you can add a BasicLabel, set the forecolor to the same as the form background in order to hide the label. Then capture the TextChanged event to get the value and send it to another Label in the format you want.
Just a note, these techniques will change in version 3.5 which is due to be released this weekend. In version 3.5, there are OnValueChanged events and also a DataSubscriber component that lets you hook into data in the PLC without writing any code and creating an event handler to process the value as it comes back.
As for manuals, the only thing we are currently making available are the ones listed in the expansion pack section of the web site. As time goes on we will make more available. Until then, the detailed software architecture is only explained in our training classes.