advertisement
Appendix| ASCII Communication with Sensor
A 3 ASCII Communication with Sensor
A 3.1 General
The ASCII commands can be sent to the sensor via the RS422 interface. All commands, inputs and error messages are effected in English.
One command always consists of a command name and zero or several parameters, which are separated by blanks and are completed with LF. If blanks are used in parameters, the parameter must be set in quotation marks.
Example: Switch on the output via RS422
OUTPUT RS422
Advice: must include LF, but may also be CR LF.
Declaration: LF Line feed (line feed, hex 0A)
CR Carriage return (carriage return, hex 0D)
Enter (depending on the system System hex 0A or hex 0D0A)
The currently set parameter value is returned, if a command is activated without parameters.
The input formats are:
<Command name> <Parameter1> [<Parameter2> […]]
<Command name> <Parameter1> <Parameter2> ... <Parameter...> or a combination thereof.
Parameters in []-brackets are optional and require the input of the parameter standing in front. Sequent parameters without []-brackets are to input compulsory, that is, it must not be omitted a parameter.
Alternative inputs of parameter values are displayed separately by „|“, for example the values „a“, „b“ or „c“ can be set for “a|b|c“. Parameter values in <> brackets are selectable from a value range.
Declarations on format:
„a | b“
„ P1 P2“
Value of the parameter can be set to the value “a“ or “b“.
It requires that both parameters “P1“ and “P2“ are set.
optoNCDT 1320 Page 83
Appendix| ASCII Communication with Sensor
„<a>“ The value of the parameter lies in a value range of “... to …“, see parameter description.
Parameter values without peak brackets can only assume discrete values, see parameter description.
Parantheses are to be understood as a grouping, that is, for a better articulation „P1 P2 | P3“ is written as
„(P1 P2)|P3“.
Example without []:
„PASSWD <Old password> <New password> <New password>“
- To change the password, all three parameters are to be input.
The output format is:
<Command name> <Parameter1> [<Parameter2> […]]
The reply can be used again as command for the parameter setting without changes. Optional parameters are only returned, if the returning is necessary. For example, the activated output values are returned by command Data selection additional values. After processing a command always a return and a prompt (“ -> “) is returned. In the case of an error an error message is before the prompt, that begins with „E xxx “, where xxx is a unique error number. Also warnings („W xxx “) can be output instead of error messages.
These are analogous to the error messages. In case of warnings the command is executed.
The replies to the commands GETINFO and PRINT are useful for support requests to the sensor, because they contain sensor settings.
optoNCDT 1320 Page 84
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 9 1. Safety
- 9 Symbols Used
- 9 1.2 Warnings
- 10 Notes on CE Marking
- 11 Intended Use
- 11 Proper Environment
- 12 Laser Safety
- 14 Functional Principle, Technical Data
- 14 Short Description
- 15 Auto Target Compensation (ATC)
- 16 Technical Data
- 18 4. Delivery
- 18 Unpacking, Included in Delivery
- 18 4.2 Storage
- 19 5. Installation
- 19 Notes for Operation
- 19 Reflection Factor of the Target Surface
- 20 Error Influences
- 20 Light from other Sources
- 20 Color Differences
- 20 Temperature Influences
- 20 Mechanical Vibration
- 20 Movement Blurs
- 21 Surface Roughness
- 22 Angle Influences
- 23 Optimizing the Measuring Accuracy
- 24 Mounting, Dimensions
- 26 Indicator Elements at Sensor
- 56 7.5 Outputs
- 56 7.5.1 Overview
- 57 Digital Output, RS
- 57 Values, Ranges
- 59 Characteristics Digital Output
- 61 Analog Output Scaling
- 61 Output Scaling
- 62 Output Scaling with Key Select
- 63 Output Scaling via Hardware Input
- 64 Calculation of Measuring Value using Analog Current
- 66 Characteristics Distance Value and Analog Output
- 68 Mastering and Teaching Analog Output
- 69 System Settings
- 69 7.6.1 General
- 69 Unit, Language
- 70 7.6.3 Keylock
- 71 Load, Save
- 73 Import, Export
- 74 Access Authorization
- 75 Sensor Reset
- 76 Digital Interfaces RS
- 76 Preliminary Remarks
- 76 Measurement Data Format
- 77 Conversion of the Binary Data Format
- 78 9. Cleaning
- 79 Software Support with MEDAQLib
- 80 Liability for Material Defects
- 80 Decommissioning, Disposal
- 80 Service, Repair
- 81 Optional Accessories
- 82 Factory Settings
- 83 ASCII Communication with Sensor
- 83 General
- 85 Overview Commands
- 88 General Commands
- 88 GETINFO, Sensor Information
- 88 LANGUAGE, Website
- 89 RESET, Boot Sensor
- 89 RESETCNT, Reset Counter
- 89 ECHO, Switching the Command Reply, ASCII Interface
- 90 PRINT, Sensor Settings
- 91 User Level
- 91 A 3.3.8.1 LOGIN, Change of the User Level
- 91 A 3.3.8.2 LOGOUT, Change into User Level
- 91 A 3.3.8.3 GETUSERLEVEL, User Level Request
- 91 A 3.3.8.4 STDUSER, Set Standard User
- 91 A 3.3.8.5 PASSWD, Change Password
- 92 Triggering
- 92 A 3.3.9.1 TRIGGER, Selection
- 92 A 3.3.9.2 MFILEVEL, Input Pulse Multifunctional Input
- 92 A 3.3.9.3 TRIGGERCOUNT, Number of Displayed Measurement Values
- 92 A 3.3.9.4 TRIGGERSW, Software Trigger Pulse
- 93 A 3.3.10 Interfaces
- 93 A 3.3.10.1 BAUDRATE, RS
- 93 A 3.3.10.2 UNIT, Web Interface
- 93 A 3.3.10.3 MFIFUNC, Function Selection Multifunctional Input
- 93 A 3.3.10.4 ERROROUT1, Activate Error Output
- 94 A 3.3.10.5 ERRORLEVELOUT1, Output Level Digital Output
- 94 A 3.3.10.6 ERRORLIMIT
- 94 A 3.3.10.7 ERRORHYSTERESIS
- 94 A 3.3.10.8 ERROROUTHOLD
- 95 A 3.3.11 Handling of Setups
- 95 A 3.3.11.1 IMPORT
- 95 A 3.3.11.2 EXPORT
- 95 A 3.3.11.3 MEASSETTINGS, Load / Save Measurement Settings
- 96 A 3.3.11.4 BASICSETTINGS, Load / Save Device Settings
- 96 A 3.3.11.5 SETDEFAULT, Default Settings
- 96 A 3.3.12 ANALOGSCALE, Scaling the Analog Output
- 97 A 3.3.13 Key Function
- 97 A 3.3.13.1 KEYFUNC, Choose Key Function
- 97 A 3.3.13.2 KEYLOCK, Set Keylock
- 97 Measurement
- 97 MEASPEAK, Choice of the Peak in the Video Signal
- 97 MEASRATE, Measuring Rate
- 97 LASERPOW, Laser Power
- 98 Measurement Value Processing
- 98 A 3.4.4.1 MASTERMV, Mastering / Zeroing
- 98 Data Output
- 98 OUTPUT, Selection of Measurement Value Output
- 98 OUTHOLD, Error Processing
- 99 Selection of Measurement Values to be Output
- 99 A 3.5.3.1 GETOUTINFO_RS422, Request Data Selection
- 99 A 3.5.3.2 OUTADD_RS422, Selection of Data Additional Values
- 99 Example Command Sequence During Selection of Measurement Value
- 100 Error Messages
- 102 Control Menu
- 102 Tab Home
- 102 Tab Settings
- 102 Inputs
- 103 Signal Processing
- 105 Outputs
- 107 System Settings