Citect for Windows Driver Specification Extract Hitachi Driver Author: Date Action Rupert Reeve 13/11/95 Wrote it Bill Rayer 13/12/95 Modifications Masoud Varjavandi 16/1/96 Modified Huang Weiguang 15/12/2000 Modified and Add TCP/IP connection
Contents 1. TARGET DEVICE(S) AND PROTOCOL 4 1.1 Introduction 4 1.2 Device Manufacturer 4 1.3 Device Definition 4 1.4 Communications Method 4 1.5 Communications/Hardware Configuration 4 1.5.1 Serial connection 4 1.5.2 TcpIp connection 7 1.6 Special Requirements 8 1.7 Contacts 8 2. USER INTERFACE 9 2.1 Introduction 9 2.2 Driver Name 9 2.3 Communication forms 9 2.3.1 Serial Connection Forms 9 2.3.2 TcpIp Connection Forms 10 2.4 Pulldown lists Help 12 2.5 IO Device Variable Types 12 2.6 PROTDIR.DBF 13 2.7 Parameters and INI options 13 2.7.1 Standard Parameters 13 2.7.2 Driver Specific Parameters 13 2.8 Driver Specific Errors 14 2.9 Driver Error Help 14 2.10 Debug Messages 14 2.11 Stats Special Counters 14 2.12 Hints and Tips 14 hitachi_extract.doc 2
3. REFERENCES 15 3.1 References 15 hitachi_extract.doc 3
1. Target Device(s) and Protocol 1.1 Introduction This section defines the types of I/O Devices that are targeted by this driver. 1.2 Device Manufacturer HITACHI 1.3 Device Definition Hitachi programmable controllers: H200 series, H700 series 1.4 Communications Method Serial connection. Either direct to the programming port or via a COMM-2H module. Tcp/Ip connection. Via a LAN-ETH module. 1.5 Communications/Hardware Configuration 1.5.1 Serial connection The programming port uses RS232 into a 15 pin connection. The COMM -2H module allows for RS232 or RS422 connection. Using RS422 connection allows up to 32 multidropped HITACHI controllers. 1.5.1.1 Wiring Diagrams Refer to H - Series, Intelligent serial port module manual. hitachi_extract.doc 4
1.5.1.1.1 RS232 pinouts When COMM module is directly connected to a personal computer (B16-EX). COMM-2H RS-232C signal name SD 2 RD 3 RS 4 CS 5 RV1 (ER) (Note 2) 6 RV2 (DR) 7 PHL 8 SG 9 Pin No. Note 1 The direction of each signal is indicated by arrows. Notes: 1) It can be left unconnected, however, it is used when connection between the CPU and host is established, to make connection cable the same. Pin No. 1 FG 2 SD 3 RD 4 RS 5 CS 6 DR 7 SG 8 CD 14 PV12 16 NV12 20 ER B16-EX Signal name 2) This signal may be connected to the DR signal at host. 1.5.1.1.2 RS422 pinouts When COMM-2Hs are connected through RS-422 after connecting the first COMM module to host through RS-232C. Host RS-232C COMM module (1st unit) COMM module (2nd unit) COMM module (3rd unit) TXDP TXDN TYDG RXDP RXDN RXDG TXDP TXDN TYDG RXDP RXDN RXDG TXDP TXDN TYDG RXDP RXDN RXDG To the next stage hitachi_extract.doc 5
The directions of each signal are indicated by arrows. When COMM module is connected to host through RS-422. COMM module (1st unit) COMM module (2nd unit) Host SD(A) SD(B) FG RD(A) RD(B) FG TXDP TXDN TYDG RXDP RXDN RXDG TXDP TXDN TYDG RXDP RXDN RXDG To the next stage The directions of each signal are indicated by arrows. 1.5.1.2 I/O Device Settings 1.5.1.2.1 Station Numbers Set any of the station numbers from 0 to 31. NOTE: The station numbers 0 to 31 are used. If any number greater than 31 is set, the staton with that number is not set, but station 31 is set. 1.5.1.2.2 Communication Settings Swith No. Items Switch Settings 1 Bit Length ON: 8 OFF: 7 300 600 1200 2400 4800 9600 19.2K 19.2K 2 Transmission speed (BPS) OFF ON OFF ON OFF ON OFF ON 3 OFF OFF ON ON OFF OFF ON ON 4 OFF OFF OFF OFF ON ON ON ON hitachi_extract.doc 6
5 Parity present/ none 6 Parity even/odd 7 Stop bit length 8 Sum check present/none ON: Present OFF: None ON: Even OFF: Odd ON: 2 OFF: 1 ON: Present OFF: None 1.5.1.3 Software Setup No special software is required in the programmable controller. 1.5.2 TcpIp connection 1.5.2.1 Wiring Diagrams Use commom Ethernet wiring. 1.5.2.2 I/O Device Settings IP address setting You can not set IP address in normal mode, Please change operation mode by MODE switch. The functions related with IP address setting is shown in the following: N0 Functions Mode setting switch Description 1 IP Address information setting IP address is set newly.set the information of IP address etc. in IP address setting area. Then write plc program an run to finish the setting. 2 Reference of IP address setting IP address setting is read. IP address informationis read to IP address eading area. 3 IP address default setting IP address returns to default value. IP address 192.0.0.1 IP address of other stationto test 192.0.0.255 Task port 1 Task port 2 3004.1(TCP/IP) 3005.1(TCP/IP) Task port timeout observation 0(no observation) Note: When change a setting of MODE setting switch, press RESET switch or apply power again. hitachi_extract.doc 7
1.5.2.3 SoftWare Setup No special software is required. 1.6 Special Requirements NONE. 1.7 Contacts Douglas Waterford, Manager PLC Engineering services, NHP Ph 748 3444, Fax 648 4353 Brendan O Driscoll and Paul Stride from NHP. hitachi_extract.doc 8
2. User Interface 2.1 Introduction This section defines how the user will see the driver. This relates directly to how the Citect forms need to be filled out and any special INI options. For the kernel, the debug trace messages and the Stats.Special counters are documented. 2.2 Driver Name HITACHI 2.3 Communication forms 2.3.1 Serial Connection Forms 2.3.1.1 Boards Form Board Type If using a serial board or COM port, you should enter COMx. Address If using a serial board or COM port, you should enter 0. I/O Port Leave this field blank. Interrupt Leave this field blank. Special Options Leave this field blank. 2.3.1.2 Ports Form Baud Rate This value should match the setting of the PLC - 9600 is recommended. Data Bits 7 top Bits hitachi_extract.doc 9
1 Parity EVEN_P Special Opt When using the H-200 a special option of -H should be used in this field to enable hardware hand shaking. 2.3.1.2 IO Devices Form protocol HITCAHI Address The address format is as follows LLUUMMPP[ :n][ /tm Where LL UU MM PP n m is the Lump address Loop No in two hexadecimal digits is the Unit No in two hexadecimal digits is the Module No in two hexadecimal digits is the Port No in two hexadecimal digits is optional office number (ie station address) in decimal. is a single optional hex digit to set the TM Response byte in the protocol. If the optional office number is included then the driver will include this information in the protocol request and thus support multi-dropped connection to multiple devices via RS422. The /Tm is 0 to F and the time is 0 to 160 ms, the response TM value is 10ms, the default value is 0 for a maximum communication speed. 2.3.2 TcpIp Connection Forms 2.3.2.1 Boards Form Board type TCPIP. Address This should be 0. I/O Port hitachi_extract.doc 10
Leave this field blank. Interrupt Leave this field blank. Special Options Leave this field blank 2.3.2.2 Ports Form Baud Rate Leave this field blank Data Bits Leave this field blank top Bits Leave this field blank Parity Leave this field blank Special Opt User must enter the destination IP address of Ethernet module. Use the following format: -Ia -Pn -T where: a Is the destination IP address in standard Internet dot format. (For example 192.9.2.60) n 3005. The destination Port number. For using task code protocol, this can only be 3004 or -T Forces the driver to use TCP (the default), rather than UDP (-U). 2.3.2.3 IO Devices Form protocol HITCAHI Address The address format is as follows LLUUMMPP hitachi_extract.doc 11
Where LL UU MM PP is the Lump address Loop No in two hexadecimal digits is the Unit No in two hexadecimal digits is the Module No in two hexadecimal digits is the Port No in two hexadecimal digits 2.4 Pulldown lists Help The following entries should be included in the Citect Help.DBF spec file. TYPE DATA FILTER PROTOCOL HITACHI 2.5 IO Device Variable Types IO Device Type Citect data type Citect data type External Input X a,b DIGITAL External Output Y a,b DIGITAL CPU Link L h DIGITAL Internal Input M h DIGITAL Internal Output R h DIGITAL External Input External Output CPU Link Internal Input Internal Output WX a,c WY a,c WL h WM h WR h Description/Special Usage/Limitations/ Valid Ranges Where: A B C H First three digits of the I/O Bit location or I/O Word location in hex. The last two digits of the I/O Bit location in decimal (0-99). The last digit of the I/O Word location in decimal. Internal locations in hexadecimal.hex values must be hitachi_extract.doc 12
preceded by a 0 (zero). 2.6 PROTDIR.DBF TAG FILE BIT_BLOCK MAX_LENGTH OPTIONS HITACHI HITACHI 240 240 0x214f 2.7 Parameters and INI options 2.7.1 Standard Parameters Block 40 Delay 0 MaxPending 2 Polltime 0 Timeout 1000 Retry 1 WatchTime 30 2.7.2 Driver Specific Parameters 2.7.2.1 Serial connection parameters Parameter name Default value Allawable value Description StartUpDelay 1000 When init channel, After send NAK FF, make a delay, in ms. IgnoreWarning 1 0,1 When 1, response with warning will be considered as normal, driver will accept the response, When 0, response with warning will be considered as error, driver will not accept the response. neots 20 2-50 After receive neots EOT, the unit will be break NewTaskCode 0 0,1 When 1, use task code A0- A5 instead of 40-45 hitachi_extract.doc 13
ReconnectTime 120 30-200 Unit break time(second) 2.7.2.2 TcpIp connection parameters Parameter name Default value Allawable value Description ChecksPerTimeOut 4 It decides how many times to check if a request is timeout IgnoreWarning 1 0,1 When 1, response with warning will be considered as normal, driver will accept the response, When 0, response with warning will be considered as error, driver will not accept the response. NewTaskCode 0 0,1 When 1, use task code A0- A5 instead of 40-45 MaxOutStanding 1 1-255 How many requsts can take place in the same time 2.8 Driver Specific Errors 2.9 Driver Error Help 2.10 Debug Messages 2.11 Stats Special Counters 2.12 Hints and Tips hitachi_extract.doc 14
3. References 3.1 References HITCAHI PROGRAMMABLE CONTROLLER H - SERIES, Intelligent Serial Port Module, I n- struction Manual. hitachi_extract.doc 15