Omega Speaker Systems LCIC-WIM-BEN manual LCIC-WIM ActiveX, Start/Stop Communication

Page 38

4.3 LCIC-WIM ActiveX

Unless otherwise specified, a function returns a

Boolean: True for success, or False for failure.

4.3.1 Start/Stop Communication

Is_LCIC_WIM_Port(CommPortNumber) Returns:

0 if the port does not respond.

1 if the port responds but not as an LCIC-WIM.

2 if the port responds as an LCIC-WIM.

CommPortNumber (Integer): Number of communication port.

OpenLCIC_WIM(CommPortNumber, Baud_Rate) Opens the specified port.

CommPortNumber (Integer): Number of communication port.

Baud_Rate (Integer): Required Baud Rate (110, 300, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, 115200, 230400, 460800 or 921600).

(Refer also to sections 3.3.1.2 & D.2.)

Note: Using USB, all these values of Baud_Rate are relevant (even though usually 921600 is used). However, upon using serial communication, board’s possible b/r values are limited to the range 19200-115200; please refer to section 3.3.1.2.

CloseLCIC_WIM()

Closes the open port.

Get_First_Free_LCIC_WIM_PortNumber()

Returns the number of the first port (from COM1 to COM16) that responds as an LCIC-WIM board.

If none is detected, 0 is returned.

37

Image 38
Contents LCIC-WIM-BEN Servicing North America Table of Contents Programming your Application Appendices O & the LED DisplayTrouble-shooting Typical Applications IntroductionGeneral Description Installing the board in the PC Page After a while, you’ll have this display Click ‘Finish’ Utilities Setup & RunningRun the setups of the LCIC-WIM utilities in the folders Run a utilityThree stages are Show Data step Calibration UtilityGeneral Pseudo Calibration stepsFive calibration steps are Page Page Page Page Save RestoreCalibrations Library Parameters Calibration Efficiency CE Settings Utility Menu BarTools / Analog Output Tools / Baud Rate for SCI port Tools / General Setpoints Port  The address setting takes effect only upon board resetCommunication Baud RateGet results immediately Max Zero Auto ZeroActivate Min ZeroPage Filling Definition FilteringFilter1 Filter2 Decimator Commands Programming your ApplicationGet a single reading RS485 Address selection, setting & reading Misc Summary of Weight & A/D Reading Commands Parameters Parameter Parameter Description Data Number TypeBecomes effective only after a system reset either Calibration Name 32 characters max LCIC-WIM ActiveX Start/Stop CommunicationVariables GetVariablerVariable NameVariables Table Category Variable Name Description Get SetVariables Table cont’d AnalogOutputM = Manual, 1 = Auto Internal updates there will be a Filters Parameter that needs no changeFast Mode FilteringLevel IntegerTransmission sends blocks of information Stage How to work with the Fast Mode in VB using the ActiveX Misc Interpreting the data in a blockDigital Inputs Appendix a I/O & the LED DisplayGeneral Notes about the I/O Analog OutputPin Function ConnectionsConnecting External Devices to the Inputs LCIC-WIM I/O & Analog Out LED Display Appendix B Scaling the Load Cell Input Appendix C Load Cell Connections Appendix D USB, RS232 & RS485 Communication ParametersBaud Rate RS485 RS485 Commands Activate address x x=1, 2, 3, …, 62, 63Page Hello Read the RS485 address of the active board Set the specified RS485 addressRS485 Responses Examples Page Page Board selection by the supplied utilities Appendix E Fill Mode IntroductionInput #1 Input #2 Input #3 Input #4 Special ModeHardware Inputs Hardware Outputs Output #1 Output #2 Output #3 Output #4Filling Parameters Filling By WeightFilling By = Weight TimeHi Limit Auto Correction Averaging x last fillingsAuto Tare Activate Lo LimitValid Limits ± … % Valid Results LimitsStart from filling # … Stabilization Criterion Tare & Stop Stabilization Criterion Stop Fast Speed ConfigFilling By = Time Filling Configurations Library Scale of the displayed weight LED Display Notations# 1 A= 40.99 Tr= 6.65 Cv= 0.00 Ft= 7527 ms St= 2554 ms Cc= Get current status small ‘s’ Response Example Error Codes Appendix F Specifications Load Cell InputAppendix G Trouble-shooting Card does not respond after PC power-onManual Zero Appendix H Zero & TareZero function Auto-Tarefunction ParameterWARRANTY/DISCLAIMER Temperature