[DC2+PA] Printer Setting Command

CL4NX CL6NX CL4NX-J CL6NX-J PW208/PW208m PW208NX/PW208mNX FX3-LX CT4-LX/HC4-LX PW4NX LR4NX-FA S84NX/S86NX CL4-SXR CL6-SXR

HEX code

DC2 <12>16
PA <50>16<41>16

Parameter

,a...a,bb,c...c,d...d(,ee,f...f,g...g)...

Default Value

None

Valid range and term of command

When turning off the power switch The set parameter is maintained.
Valid range The set parameter is valid until the next setting.
Printer operation in progress The command cannot be received during the printer operation. ([NAK] return)
Error Commands cannot be received even if an error is occurring. ([NAK] return)
Unauthentication

Commands cannot be received even if authentication is not in progress using the [DC2+PS] command. ([NAK] return)

Command Valid Range and Period [CL4-SXR/CL6-SXR]

When turning off the power switch The set parameter is maintained.
Valid range The set parameter is valid until the next setting.
Printer operation in progress The command cannot be received during printing operation. ([NAK] return)
Error The command cannot be received during error occurrence. ([NAK] return)
When the settings screen is displayed The command can be received when the settings screen is displayed.
Unauthentication

Commands cannot be received even if authentication is not in progress using the [DC2+PS] command. ([NAK] return)

Function

These are commands to save printer settings.

Format

[DC2]PA,a...a,bb,c...c,d...d(,ee,f...f,g...g)...

Data sample)

[DC2]PA,87,CA,35,SPEED:2
LABELV:12345
LABELH:456
,SB,39,ZEROSLASH:0
SHOTAI:0
PROPORTIONAL:0
                    

Parameters: CL4NX/CL6NX

Symbol Parameter name Valid range Acquisition method
a Total number of data in bytes

* Total number of data in bytes after parameter "b". Does not include the comma in between parameter "a" and "b".

0 to 524277 Acquire until ","
b(e...) Identifier AS: Auto Switch Group
CA: Common settings
CB: Notification system
II: IEEE1284 settings
IR: RS-232C settings
IL: LAN settings
IU: USB settings
IW: WLAN settings
IB: Bluetooth settings
IE: EXT settings
IF: RFID settings
IN: NFC settings
SB: SBPL settings
SZ: SZPL settings
SI: SIPL settings
SD: SDPL settings
ST: STCL settings
SE: SEPL settings
SA: AEP settings
Acquire fixed two-character
c(f...) Data size of settings in bytes
The size of setting information is equivalent to the bytes by section from parameter d. The comma in between the sections is not included.
0 to 524277 Acquire until ","
d(g...)

Setting data

* text format

* Items that need to be encrypted to perform encryption

Refer to the following the format. Data sized of setting information

Parameters: CL4-SXR/CL6-SXR Series

Symbol Parameter Name Valid Range Acquisition Method
a

Total Data Byte Count

* This is the total byte count from parameter b onwards. The comma between parameters a and b is not included.

0 to 524277 Acquire up to ","
b(e…) Identifier AS: Group Auto Switch
CA: Common Settings
CB: Notification Function
IR: RS-232C Settings
IL: LAN Settings
IU: USB Settings
IW: WLAN Settings
IB: Bluetooth Settings
IE: EXT Settings
IF: RFID Settings
IN: NFC Settings
SB: SBPL Settings
SZ: SZPL Settings

SI: SIPL Settings

SD: SDPL Settings

SG: SPGL Settings

SM: SMGL Settings

SA: AEP Settings
PS: Media Profile
Fixed acquisition of 2 characters
c(f…) Configuration Information Data Size
This is the byte count per section from parameter d onwards. Commas between sections are not included.
0 to 524277 Acquire up to ","
d(g…)

Configuration Information Data

* Text format

* Items that require encryption should be encrypted

Refer to the following [Configuration Information Data] As per Configuration Information Data Size

Parameters: PW2 series

Symbol Parameter name Valid range Acquisition method
a Total number of data in bytes

* Total number of data in bytes after parameter "b". Does not include the comma in between parameter "a" and "b".

0 to 524277 Acquire until ","
b(e...) Identifier CA: Common settings
CB: Notification system
IL: LAN settings
IU: USB settings
IW: WLAN settings
IB: Bluetooth settings
IN: NFC settings*1
SB: SBPL settings
SZ: SZPL settings*1
SI: SIPL settings*1
SD: SDPL settings*1
ST: STCL settings*1
SC: SCPL settings*1
SP: SPOS settings
SA: AEP settings*1
  1. PW208NX/PW208mNX only
Acquire fixed two-character
c(f...) Data size of settings in bytes
The size of setting information is equivalent to the bytes by section from parameter d. The comma in between the sections is not included.
0 to 524277 Acquire until ","
d(g...)

Setting data

* text format

* Items that need to be encrypted to perform encryption

Refer to the following the format. Data sized of setting information

Parameters: PW4NX

Symbol Parameter name Valid range Acquisition method
a Total number of data in bytes

* Total number of data in bytes after parameter "b". Does not include the comma in between parameter "a" and "b".

0 to 524277 Acquire until ","
b(e...) Identifier CA: Common settings
CB: Notification system
IL: LAN settings
IU: USB settings
IW: WLAN settings
IB: Bluetooth settings
IN: NFC settings
SB: SBPL settings
SZ: SZPL settings
SI: SIPL settings
SD: SDPL settings
SC: SCPL settings
Acquire fixed two-character
c(f...) Data size of settings in bytes
The size of setting information is equivalent to the bytes by section from parameter d. The comma in between the sections is not included.
0 to 524277 Acquire until ","
d(g...)

Setting data

* text format

* Items that need to be encrypted to perform encryption

Refer to the following the format. Data sized of setting information

Parameter: FX3-LX series

Symbol Parameter name Valid range Acquisition method
a Total number of data in bytes

* Total number of data in bytes after parameter "b". Does not include the comma in between parameter "a" and "b".

0 to 524277 Acquire until ","
b(e...) Identifier CA: Common settings
CB: Notification system*1
IL: LAN settings
IU: USB settings
IW: WLAN settings
IB: Bluetooth settings
IN: NFC settings
SB: SBPL settings
SZ: SZPL settings
SI: SIPL settings*1
SD: SDPL settings*1
ST: STCL settings*1
SE: SEPL settings*1
SA: AEP settings*1
  1. FX3-LX (International) only
Acquire fixed two-character
c(f...) Data size of setting information
The size of setting information is equivalent to the bytes by section from parameter d. The comma in between the sections is not included.
0 to 524277 Acquire until ","
d(g...)

Setting data

* text format

* Items that need to be encrypted to perform encryption

Refer to the [Setting information data] Data sized of setting information

Parameter: CT4-LX/HC4-LX series

Symbol Parameter name Valid range Acquisition method
a Total number of data in bytes

* Total number of data in bytes after parameter "b". Does not include the comma in between parameter "a" and "b".

0 to 524277 Acquire until ","
b(e...) Identifier AS: Auto Switch Group
CA: Common settings
CB: Notification system
IR: RS-232C settings
IL: LAN settings
IU: USB settings
IW: WLAN settings
IB: Bluetooth settings
IF: RFID settings
IN: NFC settings
SB: SBPL settings
SZ: SZPL settings
SI: SIPL settings
SD: SDPL settings
ST: STCL settings
SE: SEPL settings
SA: AEP settings
PS: Media profile settings
Acquire fixed two-character
c(f...) Data size of setting information
The size of setting information is equivalent to the bytes by section from parameter d. The comma in between the sections is not included.
0 to 524277 Acquire until ","
d(g...)

Setting data

* text format

* Items that need to be encrypted to perform encryption

Refer to the [Setting information data] Data sized of setting information

Parameters: LR4NX-FA

Symbol Parameter name Valid range Acquisition method
a Total number of data in bytes

* Total number of data in bytes after parameter "b". Does not include the comma in between parameter "a" and "b".

0 to 524277 Acquire until ","
b(e...) Identifier AS: Auto Switch Group
CA: Common settings
CB: Notification system
II: IEEE1284 settings
IR: RS-232C settings
IL: LAN settings
SB: SBPL settings
SZ: SZPL settings
SI: SIPL settings
SD: SDPL settings
SA: AEP settings
SO: LR settings
Acquire fixed two-character
c(f...) Data size of settings in bytes
The size of setting information is equivalent to the bytes by section from parameter d. The comma in between the sections is not included.
0 to 524277 Acquire until ","
d(g...)

Setting data

* text format

* Items that need to be encrypted to perform encryption

Refer to the following the format. Data sized of setting information

Parameters: S84NX/S86NX

Symbol Parameter name Valid range Acquisition method
a Total number of data in bytes

* Total number of data in bytes after parameter "b". Does not include the comma in between parameter "a" and "b".

0 to 524277 Acquire until ","
b(e...) Identifier AS: Auto Switch Group
CA: Common settings
CB: Notification system
IR: RS-232C settings
IL: LAN settings
IU: USB settings
IW: WLAN settings
IE: EXT settings
IF: RFID settings
IN: NFC settings
SB: SBPL settings
SZ: SZPL settings
SI: SIPL settings
SD: SDPL settings
SA: AEP settings
Acquire fixed two-character
c(f...) Data size of settings in bytes
The size of setting information is equivalent to the bytes by section from parameter d. The comma in between the sections is not included.
0 to 524277 Acquire until ","
d(g...)

Setting data

* text format

* Items that need to be encrypted to perform encryption

Refer to the following the format. Data sized of setting information

Setting data format

"Name of setting item" + ":" + "Setting data" + "Line feed (0DH, 0AH)"

h...h:i...i[CR][LF](j...j:k...k[CR][LF])...

Setting data

Symbol Parameter name Valid range Acquisition method
h(j...) Setting item See Settings Table Valid until ":"
i(k...) Setting data See Settings Table Valid until "[CR][LF]"
Data sample)

SPEED:4
LEVEL:5
                    

Return data format (normal)

[ACK]<06>16

Return data format (when a command error occurs)

[NAK]<15>16

Exception processing

Parameter name Exception condition:
A value outside the range is specified
Exception condition:
The specified size and received size are different
Total number of data in bytes Command Error Command Error (*1) (*2)
Identifier Invalid identifier (skip) Command Error
Data size of settings in bytes Command Error Command Error (*3)
Setting item Invalid setting item (skip) -
Setting data Invalid setting item (skip) -
  1. If the data size from the first identifier (bb) to the last data item doesn't match the data size of setting information, and the data size calculated from the format, a command error will occur.
  2. However, nothing will be returned until receiving the number of data equals to the total number of data bytes.
  3. If the data during the receipt of the setting information data size from the beginning of the setting information data is not ",", a command error occurs.
Terminology Description
Command Error All items are not set. The data received after a command error is determined is not considered as a parameter of this command.
Invalid identifier The corresponding setting information data (data equivalent to the succeeding setting information data size) is ignored.
Invalid item The data of one item (data up to [CR] [LF]) is ignored.

Exception processing (FX3-LX (International), PW4NX)

If the parameter b is "IL" and "IW", if the Wi-Fi setting is being changed (the wireless LAN module is loading), a command error will occur and NAK will be returned.

Supplementary Explanation

  1. If the sum of the total data size and configuration information data size does not match, an error will occur and they will not be set.
  2. If the data size of settings and data size of actual settings do not match, an error will occur and the value will not be set.
  3. Setting for each identifier and setting item can be omitted.
  4. Setting for each identifier and setting item can be in random order.
  5. When re-setting a setting with same identifier, the last value that was set will be enabled.
  6. If the value in setting was out of range, then the setting item will have an error and will be skipped.
  7. No malfunction will occur when a character string with the same name as the setting item was set.
    e.g.) When you set "DeviceName" as setting value for the setting item named "DeviceName".
  8. Do not send this command when the printer is printing. Use this command in the standby status.

Supplementary explanation per model: S84NX/S86NX

  1. Enable while the printer is in error or printing.
  2. Even if the printer has print items, it is enabled.

Setting saving function

This command proceeds the setting when the item name and the setting value were specified basically. However, the problem may occur when the setting data are set in order of receiving the data.because the setting item can be omitted and set in random order. These items will be saved firstly and set after all the received data were analyzed.

The target items and their setting process are described as follows.

Target item Setting process
  • [PRINTER]Time zone
  • [PRINTER]Date
  • [PRINTER]Time
  • The time zone must be set firstly because the time difference calculated from the local time is necessary for setting the date and time.
  • [PRINTER]Main port
  • [PRINTER]Sub port
  • Settings of the main port and sub-port cannot be duplicated, and the duplicated code will be ignored.
  • [LAN]Ipv4 DNS address
  • Since a secondary address cannot be set without a primary address, these are set together to account for cases where they are specified in reverse order.
  • [BLUETOOTH]ISI
  • [BLUETOOTH]ISW
  • [BLUETOOTH]PSI
  • [BLUETOOTH]PSW
  • When "ISI" is smaller than "ISW", it is not set.
  • There is a function that when "0" is set to both "ISI" and "ISW", Bluetooth module doesn't respond to the search. Regarding this function, to avoid conflicting settings, setting it under following condition.
    ISI ISW Process
    = "0" = "0" Set
    ≠"0" Don't set
    ≠"0" = "0" Don't set
    ≠"0" Set

    When "PSI" is smaller than "PSW", it is not set.

  • [BLUETOOTH]Delete pairing information
  • There are 10 paring information and they are arrayed. You cannot delete them one by one because the deleted area is filled with next data and the number will be inconsistent. You can delete the data when you know all the paring information to be deleted.
  • In FX3-LX, areas 1 to 3 are never clogged even if they are deleted
  • [SBPL]STX
  • [SBPL]ETX
  • [SBPL]ESC
  • [SBPL]ENQ
  • [SBPL]CAN
  • [SBPL]NULL
  • [SBPL]OFFLINE
  • Each control code cannot be duplicated, and the duplicated code will be ignored.
  • [SZPL]Command Head
  • [SZPL]Control head
  • [SZPL]Delimiter
  • Each control code cannot be duplicated, and the duplicated code will be ignored.
  • [SDPL]SOH
  • [SDPL]STX
  • [SDPL]CR
  • [SDPL]CNT
  • Each control code cannot be duplicated, and the duplicated code will be ignored.
  • [STCL]Command Head1 - 3
  • Each control code cannot be duplicated, and the duplicated code will be ignored.

Sequence