ASCII Communication with Sensor. MICRO-EPSILON optoNCDT 1320

Add to my manuals
110 Pages

advertisement

ASCII Communication with Sensor. MICRO-EPSILON optoNCDT 1320 | Manualzz

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

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

Download PDF

advertisement

Table of contents