7. LW3 Programmers' Reference
7.14. OCS Port Configuration
Occupancy sensor-related commands are available only from FW package 1.1.0b7.
DIFFERENCE:
7.14.1. Querying the Input Level of an OCS Pin
Command and Response
#ocs
ç GET·/V1/MEDIA/OCS/P1.InputLevel
pr·/V1/MEDIA/OCS/P1.InputLevel=<value>
æ
Parameters
Parameter description
Parameter
<value>
The input value of the OCS pin.
Example
ç GET /V1/MEDIA/OCS/P1.InputLevel
æ pr /V1/MEDIA/OCS/P1.InputLevel=Low
7.14.2. Setting the Sensor Type
Command and Response
SET·/V1/MEDIA/OCS/P1.SensorType=<sensor_type>
ç
pw·/V1/MEDIA/OCS/P1.SensorType=<sensor_type>
æ
Parameters
Parameter description
Parameter
It defines whether the low or high
<sensor_type>
input level means the occupancy.
Example
ç SET /V1/MEDIA/OCS/P1.SensorType=Active low
æ pw /V1/MEDIA/OCS/P1.SensorType=Active low
MMX2 series – User's Manual
Value
Value description
high level
High
low level
Low
Value
Value description
Occupancy status is
Active low
'Occupied' when the
input level is low.
Occupancy status is
Active high
'Occupied' when the
input level is high
(default value).
Applied firmware package: v2.9.0b6 | LDC software: v2.7.6b4
7.14.3. Querying the Reported OCS State
Command and Response
ç GET·/V1/MEDIA/OCS/P1.State
pr·/V1/MEDIA/OCS/P1.State=<status>
æ
Parameters
Parameter description
Parameter
<status>
It reports the occupancy
state of the room depending
on the sensor type.
Example
ç GET /V1/MEDIA/OCS/P1.State
æ pr /V1/MEDIA/OCS/P1.State=Free
Value
Value description
When the SensorType=Active high and the
Free
Inputlevel=Low or
when SensorType=Active low and Inputlevel=High
Occupied When the SensorType=Active high and the
Inputlevel=High or
when SensorType=Active low and Inputlevel=Low
112
Need help?
Do you have a question about the MMX2-4x3-H20 and is the answer not in the manual?