Skip to main content

Can I close the iris of DINION IP starlight 6000 based on a relay trigger: Alarm Task Editor Script?

Question

Can I close the iris of DINION IP starlight 6000 based on a relay trigger: Alarm Task Editor Script?

Answer

DC-Iris

When using a DC-Iris lens you can apply the following script.
a DC_iris lens shall fully close and therefore give black image

lens example: LVF-5005C-S1803

Yes! You can use the following script in the Alarm Task Editor:

//script fully close the iris when toggle the relay
//Iris close can only be done in non-hdr
//must switch to color mode as when iris close cam switch to night mode and opens the iris

//sequence to close iris
RcpCommand hdroff:={Command("rcp.xml?command=0x09A5&type=P_OCTET&direction=WRITE&num=1&payload=0x8500040260020000") IP("127.0.0.1")};
RcpCommand maniris:={Command("rcp.xml?command=0x09A5&type=P_OCTET&direction=WRITE&num=1&payload=0x85000401b0020001") IP("127.0.0.1")};
RcpCommand colormode:={Command("rcp.xml?command=0x09A5&type=P_OCTET&direction=WRITE&num=1&payload=0x8500040140020000") IP("127.0.0.1")};
RcpCommand closeiris:={Command("rcp.xml?command=0x09A5&type=P_OCTET&direction=WRITE&num=1&payload=0x85000401b10200FF") IP("127.0.0.1")};

//sequence to open iris
RcpCommand autodn:={Command("rcp.xml?command=0x09A5&type=P_OCTET&direction=WRITE&num=1&payload=0x8500040140020002") IP("127.0.0.1")};
RcpCommand autoiris:={Command("rcp.xml?command=0x09A5&type=P_OCTET&direction=WRITE&num=1&payload=0x85000401b0020000") IP("127.0.0.1")};

if(Relay(1)) then hdroff,maniris,colormode,closeiris else autodn,autoiris;

Here it is a demo video of using the script:

(tick) Additional notes to be considered:

You can adapt the script to use the camera input instead. So, an external relay can then trigger the camera input for example. 

  • For this action, this script will not work by using the Input as it it written to be used with the Relay.
    But if you change the word Relay by Input, it should work:

Can I close the iris of DINION IP starlight 6000 based on a relay trigger Alarm Task Editor Script.png

P- Iris

When using a P-Iris lens the lens never fully close.
therefore you must first read at the f value, as this value is different per lens.
this value will than be sent via the script

Example lenses are:

  • LVF-8008C-P0413

  • LVF-5003C-P2713

For cameras with P-Iris lens, please proceed as below:

Step 1:

  • send the bicom command to obtain the max F stop value (hex value).

    • ⚠️ This is mandatory step to do a read of the F-stop and modify the script to meet the lens capabilities of the lens used

  • see command in top of script

Step 2:

  • modify the script with the value

Step 3:

  • copy-paste the script in the camera

Step 4:

  • test by either close relay or activate the input. You will see the shutter slows down.

//script fully close the iris when toggle the relay or Input
//Iris will close almost full but due its a P-Iris it doesnt closs full like DC-Iris
//get max close f value and use last 4 digits of response example 05d9
//get max close rcp.xml?command=0x09A5&type=P_OCTET&direction=WRITE&num=1&payload=0x85000405e10B

//control mode to manual
RcpCommand maniris:={Command("rcp.xml?command=0x09A5&type=P_OCTET&direction=WRITE&num=1&payload=0x85000405e4020000") IP("127.0.0.1")};
//max Fnumber of used lens 05d9 hex to dec
RcpCommand fclose:={Command("rcp.xml?command=0x09A5&type=P_OCTET&direction=WRITE&num=1&payload=0x85000405e10205D9") IP("127.0.0.1")};

//control mode to Auto
RcpCommand autoiris:={Command("rcp.xml?command=0x09A5&type=P_OCTET&direction=WRITE&num=1&payload=0x85000405e4020001") IP("127.0.0.1")};

if(Relay(1)) then maniris,fclose else autoiris;
if(Input(1)) then maniris,fclose else autoiris;

Here it is a demo video of using the script:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.