status ¶ Operational (Property)
OneWireMaster (FB) ¶ FUNCTION_BLOCK OneWireMaster This function block represents a 1-wire master. Its outputs are set during initialization and give information about the present devices. InOut: Scope Name Type Comment Output uiMaxDevices UINT maximum number of connected devices pasScannedDevices POINTER TO ARRAY [0..19] OF OneWireUniqueID list of scanned devices uiScannedDevices UINT number of scanned devices Properties: Operational Path Methods: AddDevice GetNumberOfSlaves Scan Structure: AddDevice (Method) GetNumberOfSlaves (Method) Operational (Property) Path (Property) Scan (Method)
OneWireMaster.AddDevice (METH) ¶ METHOD AddDevice : BOOL This method adds a slave device to the master’s update list InOut: Scope Name Type Return AddDevice BOOL Input sSlave STRING
OneWireMaster.GetNumberOfSlaves (METH) ¶ METHOD GetNumberOfSlaves : UINT This method returns the number of present devices during the last scan. InOut: Scope Name Type Return GetNumberOfSlaves UINT
OneWireMaster.Operational (PROP) ¶ PROPERTY Operational : BOOL This property has to return TRUE, when the master device is running
OneWireMaster.Path (PROP) ¶ PROPERTY Path : STRING This property returns the file path of the master
OneWireMaster.Scan (METH) ¶ METHOD Scan : BOOL This method re-scans the bus. The results can be seen at the outputs of the FB instance. InOut: Scope Name Type Return Scan BOOL
OneWireUniqueID (FB) ¶ FUNCTION_BLOCK OneWireUniqueID This function block contains the unique ID of a 1-wire device. Each device has such an ID. The OneWireMaster instance scans at start for the devices and lists them. InOut: Scope Name Type Initial Comment Input byClass BYTE 16#28 device class abyUniqueID ARRAY [0..5] OF BYTE unique ID Properties: StringRepresentation Structure: StringRepresentation (Property)
OneWireUniqueID.StringRepresentation (PROP) ¶ PROPERTY StringRepresentation : STRING This property allows to get or set the Unique ID as STRING with the format aa-bbccddeeffgg
SenseHat.GyroZCalibrated (PROP) ¶ PROPERTY GyroZCalibrated : LREAL