beautypg.com

Control and settings through http command – Aviosys 9212 Delux User Manual

Page 35

background image

- 34 -

10. Control and Settings Through HTTP Command


Users can control the 9212’s action directly though the HTTP orders.
The syntax of the HTTP commands are listed below:
Command format: http://adminlogin:password@ipaddress/Set.cmd?CMD=CmdType

*Http Function of 9212:

1. SetPower: to control I/O -

Command format: http://adminlogin:password@ipaddress/Set.cmd?CMD=setpower
message as follow:

Output Message will look something like the string of characters below:
P61=0, P62=1, P63=0, P64=0, P65=0, P66=0, P67=0, P68=1 HTTP/1.0 200 OK Connection:
close

What this means is:
P6
: Represents that this output message is from 9202 Output Module
(The P61 corresponds to the output port number. P61 = Output Module Port 1 P62 = Output
Module Port 2 and so on).

The 0/1 after each Output
: Represents whether there has been a status change or not.
0 = Keep Current Status
1 = Change Current Status

So for our current output message:
P61=0, P62=1, P63=0, P64=0, P65=0, P66=0, P67=0, P68=1 HTTP/1.0 200 OK Connection:
close
P62 = 1: Output 2: Relay status - Closed
P68 = 1: Output 8: Relay status - Open

Please refer to the chart provided for more information:
Output Number

Output Status = 0

Output Status = 1

Output 1: (NC)

Status = Closed

Status = Open

Output 2: (NC)

Status = Closed

Status = Open

Output 3: (NC)

Status = Closed

Status = Open

Output 4: (NC)

Status = Closed

Status = Open

Output 5: (NO)

Status = Open

Status = Closed

Output 6: (NO)

Status = Open

Status = Closed

Output 7: (NO)

Status = Open

Status = Closed

Output 8: (NO)

Status = Open

Status = Closed

NO = Relay Normally Open NC = Relay Normally Closed

Note:

IP Power 9202 Output Pro has predefined Relay Statuses.

Outputs 1 - 4:

Normal Closed Relay

(NC)

Outputs 5 - 8:

Normal Open Relay

(NO)

(The relay status of the outputs cannot be changed: Meaning that Output 1-4 will

always be

Normally closed

and Outputs 5-8 will always be

Normally Open

)