OneWire (FB)¶
FUNCTION_BLOCK OneWire
This function block is the base class for 1-wire devices controlled via the global OneWireMaster instance gOneWireMaster.
It is meant to be extended by other function blocks that overload the following methods/properties and replace it with their specific implementation,
always including a call of the base implementation with super^.<MethodName>() :
- AfterReadInputs (reading input data) 
- BeforeWriteOutputs (writing output data) 
- Initialize [optional] (used to read parameters from the configuration) 
- Operational [optional] (used to signal the status of the device) 
The body of this FB is called by the methods AfterReadInputs and BeforeWriteOutputs, where _xAfterReadInputs indicates the caller.
- InOut:
- Scope - Name - Type - Initial - Comment - Input - sDataFile- STRING- ‘/w1_slave’ - name of file that inlcudes the data 
Properties:
Methods:
Structure:
