User`s manual

Applilet EZ for HCD Controller
APPENDIX B SERIAL COMMAND MODE COMMUNICATION COMMANDS
R20UT0435EJ1200 Rev. 12.00 47
Jul 31, 2014
B.2.2 Details of basic format 4 (target host)
data block
3 [byte] data. The data is transmitted from the target device only when cmd is “rd” and “rs”, among the items
specified for basic format 3.
cmd = “rd”: This returns as 3 digits in decimal format the duty value of the specified channel. (“000” to “255”)
cmd = “rs”
Note 1
: This returns as 3 digits in decimal format the status state.
“128”: Shutdown status (EN pin: low level)
Note 2
“000”: Enable status (EN pin: high level)
Notes 1. Do not use the status command for EZ-0005, which does not use a constant-current driver IC, because no
status acquisition or status specification command is provided in EZ-0005.
2. Shutdown status during status acquisition occurs due to the following causes.
When overheat protection alarm output (SH) of the constant-current driver IC enters an alert state (high
level)
When Shutdown status has been set by a communication command
In both cases, operation or standby input (EN pin) of the constant-current driver IC becomes low level in
Shutdown status.
B.2.3 ASCII type execution example
Rema
rk
LineFeed (0x0D) and CarriageReturn (0x0A) are expressed as \r and \n, respectively, in this section.
1. Target device status acquisition
Transmission from the host device
“1,rs,000\r\n”
Reception from the target device (Enable status)
“000\r\n”
2. Setting the duty of channel 1 of the target device to 10
Transmission from the host device
“1,wd,010\r\n”
Reception from the target device
None
3. Acquiring the duty value of channel 3 of the target device
Transmission from the host device
“3,rd,000\r\n”
Reception from the target device (duty value = 255)
“255\r\n”
4. Setting the status of the target device to Shutdown
Transmission from the host device
“1,ws,128\r\n”
Reception from the target device
None