beautypg.com

Acquiring alarm output time setting from vn-e4, Setting alarm output time for vn-e4, Acquiring alarm output status from vn-e4 – JVC 4ch Network Encoder VN-E4 User Manual

Page 36: Changing alarm output of vn-e4, Api for acquiring/changing parameters of vn-e4

background image

36

5. API for Acquiring/Changing Parameters of VN-E4 _

5.5. Alarm Environment Setting

Setting Chattering Guard Time of Alarm Input for VN-E4

Format

/api/param?peripheral.input_pin.pin(Number).chatter=data

Example

When setting the chattering guard time for alarm input 1

/api/param?peripheral.input_pin.pin(1).chatter=150

Example of response

peripheral.input_pin.pin(1).chatter&200 OK

Interpretation

Change the time setting to prevent chattering in the alarm input. Specify a number between 1 to 4 as VN-E4
has 4 alarm inputs. Unit of the response value is in msec.

Allowed users

admin, operator

Acquiring Alarm Output Time Setting from VN-E4

Format

/api/param?peripheral.output_pin.pin.duration

Example of Response

peripheral.output_pin.pin.duration=1000&200 OK

Interpretation

Acquire the current alarm output duration in millisecond. If alarm output is set in alarm action, this parameter
can be acqurired by following API.

/api/param?application.event(Number).action

Allowed users

admin, operator, user

Setting Alarm Output Time for VN-E4

Format

/api/param?peripheral.input_pin.pin.duration=data

Example

/api/param?peripheral.input_pin.pin.duration=50

Example of response

peripheral.input_pin.pin.duration&200 OK

Interpretation

Change the alarm output duration in millisecond. Specify 0, or 50 to 5000. Following API is also available to
set the parameter.

/api/param?application.event(Number).action

Allowed users

admin, operator

Acquiring Alarm Output Status from VN-E4

Format

/api/param?peripheral.output_pin.pin.status

Example of Response

peripheral.output_pin.pin.status=make&200 OK

Interpretation

Acquire the current alarm output status. Either make or break will be returned.

Allowed users

admin, operator, user

Changing Alarm Output of VN-E4

Format

/api/param?peripheral.output_pin.pin.status=data

Example

/api/param?peripheral.output_pin.pin.status=break

Example of Response

peripheral.output_pin.pin.status&200 OK

Interpretation

Change the alarm output. Specify as make or break.
When the alarm output time is zero, alarm output is changed as this API specifies. When the alarm output time is not
zero, alarm output is changed as this API specifies, then alarm output is changed again after the alarm output time.

Allowed users

admin, operator