5 n-400 setup command – KEYENCE N-400 User Manual
Page 83

75
Chapter 4 Multi-Drop Link Mode Control Procedure
4
Command
Response
Command CR
Response CR
STX Command ETX
STX Response ETX
4.5
N-400 Setup Command
This section describes the procedure for changing the N-400’s settings by sending
a command to the N-400.
To change the settings of the N-400, you should normally use the N-400 setup
software instead of these commands.
■
Details of the communication
1. Send the “SSET” direct control command to the N-400.
The N-400 then goes into SETUP mode. (In SETUP mode, the N-400 displays
“S1(
51
)”.)
When this command is processed normally, the N-400 sends back “OK”.
2. After the N-400 goes into SETUP mode, send the command of the item to be
changed (setting change command) to the N-400.
When this command is processed normally, the N-400 sends back “OK”.
If an error occurs, the N-400 sends back “ERR**”. (** is the error code.)
3. To confirm the N-400’s current settings, send the setting check command to the
N-400.
When this command is processed normally, the N-400 sends back the data on
the current settings.
If an error occurs, the N-400 sends back “ERR**”.(** is the error code.)
4. To save the settings in the EEPROM of the N-400, send the “SAVE” command
to the N-400.
If updated settings are saved in the EEPROM, these settings take effect the
next time the N-400 is turned ON.
When this command is processed normally, the N-400 sends back “OK”.
If an error occurs, the N-400 sends back “ERR**”. (** is the error code.)
5. To exit SETUP mode and perform normal reading operation, send the “SEND”
command to the N-400.
When this command is processed normally, the N-400 sends back “OK”.
If an error occurs, the N-400 sends back “ERR**”. (** is the error code.)
■
Communication format
The ID number is not specified in the command/response format.
The N-400 returns the response with the same header and delimieter as it
receives.
When the command format is [Command][CR], the response format is
[Response][CR]. When the command format is [STX][Command][ETX], the
response format is [STX][Response][ETX].
*
[LF] can be added to the end of the command. However, [LF] is not added to
the response.
*
When [ESC] is added to the head of the command, the N-400’s receiving buffer
is cleared. However, [ESC] is not added to the response.