Page 2
1、All the logos and names in this manual belong to OPT. 2、All copyright reserved by OPT company, the original author. Replication and distribution of the contents in any form, anywhere without permission from our company is straightly prohibited. Revisions are subject to change without prior notice.
1、Overview 1.1 Profile This digital power controller unit (No: OPT-DPA1024-4) is a digital constant current controller which possesses the following functions: 256-levelled intensity adjustment (The adjustment for each channel is independent.); highlight triggering; general triggering; trigger delay; automatically checks for light source maximum current (hot swapping light source);...
OPT MACHINE VISION TECH.CO. LTD ADD:8 JingSheng Road, JingXia ChangAn DongGuan China 523853 TEL: 0769-82716188 FAX: 0769-81606698 E-mail:optmv1@optmv.com Website:Http://www.optmv.net 3.3 Setting intensity 1、manually setting: Turn both the switch 1 and switch 2 on the front panel to “ON” position to enter the general lighting mode.
OPT MACHINE VISION TECH.CO. LTD ADD:8 JingSheng Road, JingXia ChangAn DongGuan China 523853 TEL: 0769-82716188 FAX: 0769-81606698 E-mail:optmv1@optmv.com Website:Http://www.optmv.net 4、Software Operation Instructions 4.1 Software interface description 4、search device 5、check/modify information 6、short command communication 7、long command communication 11、intensity value 8、multi-channel 12、channel switch window 9、status bar...
Page 15
OPT MACHINE VISION TECH.CO. LTD ADD:8 JingSheng Road, JingXia ChangAn DongGuan China 523853 TEL: 0769-82716188 FAX: 0769-81606698 E-mail:optmv1@optmv.com Website:Http://www.optmv.net long command communication common functions for multiple channel communication multi-channel window extension to control the intensity for 16 channels status bar...
Page 16
OPT MACHINE VISION TECH.CO. LTD ADD:8 JingSheng Road, JingXia ChangAn DongGuan China 523853 TEL: 0769-82716188 FAX: 0769-81606698 E-mail:optmv1@optmv.com Website:Http://www.optmv.net 5、 “Apply” button 3、“OK” button 4、 “Cancel” button Fig.4.3: Long command communication window Index Interface Description Remark Choose function Choose function...
Page 17
OPT MACHINE VISION TECH.CO. LTD ADD:8 JingSheng Road, JingXia ChangAn DongGuan China 523853 TEL: 0769-82716188 FAX: 0769-81606698 E-mail:optmv1@optmv.com Website:Http://www.optmv.net 1、 slider for adjust intensity 2、intensity value 3、 channel switch Fig.4.3: Multi-channel window Index Interface Description Remark Intensity setting slider The intensity for each channel can be adjusted by moving the slider.
OPT MACHINE VISION TECH.CO. LTD ADD:8 JingSheng Road, JingXia ChangAn DongGuan China 523853 TEL: 0769-82716188 FAX: 0769-81606698 E-mail:optmv1@optmv.com Website:Http://www.optmv.net 4.2 Software function description Operation Show window Function Choose the channel(s) (0 means all channels), set the short/long Set intensity intensity within the range: 0-255...
Website:Http://www.optmv.net 6、Appendix B: Programming Manual 1. Overview This programming manual is a specification for OPT Digital Light Source Controller (OPT-DCA24E), which can support both serial port and Ethernet communication (the latter is recommended). 1.1. Configuration The controller has an default IP address: 192.168.1.16, which can be dynamically allocated by a router. In the case that the IP address of your device(s) is not in the form of 192.168.1.X (X can be any integer within [0,255]), say 192.168.24.X,...
OPT MACHINE VISION TECH.CO. LTD ADD:8 JingSheng Road, JingXia ChangAn DongGuan China 523853 TEL: 0769-82716188 FAX: 0769-81606698 E-mail:optmv1@optmv.com Website:Http://www.optmv.net a) an example flowchart for serial port communication b) an example flowchart for Ethernet communication Figure 1: Flowcharts for the two types communication (Here, we simply take setting the intensity for example.), respectively.
Page 25
OPT MACHINE VISION TECH.CO. LTD ADD:8 JingSheng Road, JingXia ChangAn DongGuan China 523853 TEL: 0769-82716188 FAX: 0769-81606698 E-mail:optmv1@optmv.com Website:Http://www.optmv.net OPTControllerAPI OptController = new OPTControllerAPI(); //OptController.InitSerialPort("COM1"); //Create an Ethernetconnection by IP address e.g. “192.168.1.16” if (0 !=OptController.CreateEtheConnectionByIP("192.168.1.16") ) Console.WriteLine("Connection failed"); break;...
Page 26
OPT MACHINE VISION TECH.CO. LTD ADD:8 JingSheng Road, JingXia ChangAn DongGuan China 523853 TEL: 0769-82716188 FAX: 0769-81606698 E-mail:optmv1@optmv.com Website:Http://www.optmv.net //Destroy the connection int ret = 0; ret = OptController.DestoryEtheConnect(); if (0 != ret) Console.WriteLine("Failed to destroy the connection"); else Console.WriteLine("DONE");...
4. Output(s): controllerHandle – a handle of the controller 5. Return value: • succeed: OPT SUCCEED; • failed: OPT ERR INITSERIAL FAILED or OPT ERR SERIALPORT UNOPENED (see the error code in Tab. 1). 6. See also: releasing a serial port 2.2.
TEL: 0769-82716188 FAX: 0769-81606698 E-mail:optmv1@optmv.com Website:Http://www.optmv.net • failed: OPT ERR CREATEETHECON FAILED (see the error code in Tab. 1). 6. Remarks: • connect to a server as a client. Before connecting, make sure that the controller is connected to the LAN;...
4. Output(s): SN – the obtained serial number 5. Return value • succeed: OPT SUCCEED; • failed: OPT ERR READ SN FAILED (see the error code in Tab. 1). 2.23. Reading IP configuration 1. Function: long OPTController ReadIPConfig(OPTController Handle controllerHandle, char *IP, char *subnetMask, char *defaultGateway) 2.
OPT MACHINE VISION TECH.CO. LTD ADD:8 JingSheng Road, JingXia ChangAn DongGuan China 523853 TEL: 0769-82716188 FAX: 0769-81606698 E-mail:optmv1@optmv.com Website:Http://www.optmv.net 3. Appendices A FAQ (frequently asked questions) A.1 Why the controller does not respond properly to continuous operations? We recommend 20ms time interval between a pair of “Set” and “Read” operations, offering room for the controller to react.