Wavetronix Click 500 (programmable controller) (CLK-500) - Developer Guide User Manual
Page 92
CHAPTER 8 • SERIAL MESSAGE SUPPORT 91
ClickUtilTime myTime;
// Block for 2000 ms seconds for a 0x0E read response from
// sensor ID 5 on virtual port 1
ClickZ1EnableAddressFirewall(V1,1,5);
ClickZ1_0ERequest(V1,5,0,2000);
// Check for communication errors
if (ClickZ1ErrorCheck(V1) == 0)
{
// Write the data into the local time structure
ClickZ1_0EReadData(V1,&myTime);
}
If you would like to listen for pushed data, you can filter receive messages by sensor ID
by calling ClickZ1EnableAddressFirewall(V1,1,5). To disable the address firewall, call the
function ClickZ0SetAddressFirewall(V1,0,0). This will allow reception of a pushed data
message from any sensor ID on virtual port 1.
The following table lists the currently supported Z1 messages:
Command Type
Description
Read / Write
00
General Configuration
R/W
03
Data Configuration
R/W
06
Sensor Alignment Status
R
08
Save Configuration to flash
W
0D
Push Enable/Disable
R/W
0E
Set/Get Time
R/W
13
Classification Configuration
R/W
17
Active Lane Information
R/W
1C
Set/Get Uart Data Push
R/W
1D
Speed Bin Config
R/W
67
Get Active Events
R
68
Get Presence
R
6A
Get Non-Volatile Interval Stor-
age Information
R
72
Get Non-Volatile Lanes &
Approaches Variable Size by
Index
R