Omega Speaker Systems LCIC-WIM-BEN manual Programming your Application, Commands

Page 30

4. Programming your Application

The control of the board is by commands and parameters, described below. You may either use them directly (see also section D.3), or call an ActiveX (see section 4.3) that does the work.

4.1 Commands

_ <c/r> signifies a carriage return.

Note about High Speed Commands:

Single character commands (where no <c/r> is required) are used for quick direct access/control of the card.

Command

 

Action

 

a. Parameters: Read & write:

 

 

Read parameter #nn.

 

 

All values are returned in floating point scientific format,

Rnn<c/r>

 

preceded by nn<c/r> echo and appended by a c/r. E.g.,

 

 

the answer to ‘R23<c/r>’ is ‘23<c/r>2.560000e+02<c/r>’

 

 

indicating that the value of Filter1 is 256.

 

 

Write the value argument to parameter #nn.

 

 

Floating point values can either be normal or scientific

 

 

representation. For example 0.003 could be sent as it is or

Wnn<c/r>argument<c/r>

 

as 3.0E-03.After the ‘Wnn<c/r>’ the board echoes

 

nn<c/r>’ and after the ‘argument<c/r>’ the board responds

(upper case W)

 

argument<c/r>OK<c/r>’. For example, PC sends

 

 

 

 

‘W23<c/r>’, the board answers ‘23<c/r>, the PC then

 

 

sends ‘123<c/r>’ and the board answers

 

 

‘123<c/r>OK<c/r>’ changing Filter1 to 123.

b. Fast Mode: Start & stop

(the Fast Mode is not available with RS485):

 

Start a ‘Fast Mode’ session using Filter1 (no LED update).

u

Terminated by the ‘x’ command.

(lower case u)

A timer stamp is appended. Its value is the time elapsed

 

from start of transmission until end of transmission, in ms.

 

Start a ‘Fast Mode’ session using Filter2 (no LED update).

U

Terminated by the ‘x’ command.

(upper case U)

A timer stamp is appended. Its value is the time elapsed

 

from start of transmission until end of transmission, in ms.

x

Exit Fast Mode and return to general mode.

In order to exit the fast mode, the ‘x’ command should be

(lower case x)

synchronised, that is, issued upon receiving a block.

 

29

Image 30
Contents LCIC-WIM-BEN Servicing North America Table of Contents Programming your Application Appendices O & the LED DisplayTrouble-shooting Introduction General DescriptionTypical Applications 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 Restore Calibrations LibrarySave 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 Filtering Filter1 Filter2 DecimatorFilling Definition 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 IntroductionSpecial Mode Hardware InputsInput #1 Input #2 Input #3 Input #4 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 Results Limits Start from filling # …Valid Limits ± … % Stabilization Criterion Tare & Stop Fast Speed Config Filling By = TimeStabilization Criterion Stop 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-onAppendix H Zero & Tare Zero functionManual Zero Auto-Tarefunction ParameterWARRANTY/DISCLAIMER Temperature