background image

9

  -

 

.2.I/O operation 

 

Output to the port 

 

Port output (1 byte) 
It  will  set  the  data  to  the  output  port  when  the  data  is  received  from  the  computer 
by ”W” command. It will return “OK” to the computer when the data will be set to the 
output port. 

             

 

 

Bit output 
It will set the data to the specified bit when the data is received from the computer by 
“O”  command.  It  will  return  “OK”  to  the  computer  when  the  data  will  be  set  to  the 
specified bit.   

 

 

 

Input from the port 

 

Port input 
When  ZS-6216E  will  be  received  “R”  command  from  the  computer,  capture  the  data 
from the input port and return it to the computer.   

 

4.3.Command table 

  ZS-6216E recognizes the 1

st

 byte of the data as the control command and control it. 

  It has to attach a delimiter (CR+LF) on the end of data when send the data. 
  It will be returned “NG” if the 1

st

 byte of the data should not be as a command. 

 

Command 

Function 

  Read the data from the input port. 

  Write the data to the output port. 

O (ON) 

  Specified bit on the output port will be “ON” (Hi). 

O (OF) 

  Specified bit on the output port will be “OFF” (Low). 

 

4.3.1. R command 

 

Function 

  Read the data from the input port. The return is 2 bytes, the order is high and low. 
 

 

Format 

CR LF 

 

 

Return value 

xx 

CR LF

 

: 

It will be received 2 bytes of input port data. 

 

 

 

 

   

“x” is ASCII code from 0 to F. 

NG 

CR LF

 

: 

Recognition error of command or data. 

 

 

Example 

Send 

 

: 

CR LF 

Reply   

: 

01 

CR LF 

 

(IN1 is ON , from IN2 to 8 are OFF) 

Содержание ZS-6216E

Страница 1: ...1 ZS 6216E USB DIO Unit User s Manual Ver 01 Zip Code 183 0027 2 13 37 Honmachi Fuchu Tokyo Japan TEL 81 0 42 368 2126 FAX 81 0 42 364 0067 URL http www zenisu co jp...

Страница 2: ...MOS relay 4 2 5 Photo coupler 4 2 6 Appearance 4 3 Install 5 3 1 Windows 7 5 3 2 Windows 10 7 3 3 Windows 8 8 1 Without operation guarantee 7 4 Operation 8 4 1 Outline of operation 8 2 I O operation...

Страница 3: ...ersion by operating photo MOS relay and photo coupler with connecting PC having USB interface 8 8 ZS 6216E USB Output Input 5V GND COM AN CA NO 2 Specification 2 1 Operation environment PC IBM PC AT c...

Страница 4: ...0 Hummidity85 or less Storage temperature 20 to 80 Size 76 W 16 H 52 D mm Accessary D SUB 37 pin male x 1 2 4 Photo MOS relay Relay TLP3215 Toshiba Contact resistance 1 5 or less Related load 40V 300m...

Страница 5: ...roduct it is necessary to install the device driver at first When it is connected to a computer the following screen will be displayed Click close button Open the device manager and click other device...

Страница 6: ...6 Click Refer to the computer and search a driver software Specify Win7_inf and click Next button Installation starts automatically Click Install this driver if the following screen will be displayed...

Страница 7: ...0 In case of Windows 10 installation starts automatically when connecting with computer It is possible to confirm COM port number from the device manager 3 3 Windows 8 8 1 Without operation guarantee...

Страница 8: ...he USB cable while displaying the device manager Please set as follows when setting the port open in the program COM port number The specified number by the device manager Baud rate 9600bps It does no...

Страница 9: ...4 3 Command table ZS 6216E recognizes the 1st byte of the data as the control command and control it It has to attach a delimiter CR LF on the end of data when send the data It will be returned NG if...

Страница 10: ...Send W01 CR LF Reply OK CR LF OUT1 is ON from OUT2 to 8 are OFF 4 3 3 O command ON OF command Function Specified bit on the output port will be set ON or OFF Format ONx CR LF Write the specified bit...

Страница 11: ...ction in accordance with instruction manual 2 It will be charged for extra in the following case even during warranty period Incorrect usage or failure or damage caused by carelessness Failure or dama...

Отзывы: