Panasonic GT02 Скачать руководство пользователя страница 6

1.1 Communicating with External Devices 

1.1.1 Communication Between GT and External Devices 

The communication between the GT and an external device is carried out via the GT internal memories. 
The external device can “control screens” or “display data” by reading/writing the GT internal memories. 

 Reference:

 

 

For the details on the commands to read/write the internal memories, refer to <Chapter 3, 4 and 5>. 

Depending on the communication mode settings, the GT can send a message informing the external 
device when a switch was pressed. 

Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]

Содержание GT02

Страница 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 2: ...antle or remodel the product It could cause excessive exothermic heat or smoke generation Do not touch the terminal while turning on electricity It could lead to an electric shock Use the external devices to function the emergency stop and interlock circuit Connect the wires or connectors securely The loose connection could cause excessive exothermic heat or smoke generation Do not allow foreign m...

Страница 3: ...e 3 2 3 1 1 Overview of Communication Mode 3 2 3 1 2 Setting Communication Conditions 3 2 3 1 3 Basic Formats 3 3 3 1 4 Control Codes 3 4 3 1 5 Command Codes 3 4 3 1 6 BCC Block Check Code 3 5 3 1 7 Error Codes 3 6 3 1 8 Restrictions 3 6 3 2 Command Code Reference 3 7 4 Two way 1 Mode 4 1 4 1 What is Two way 1 Mode 4 2 4 1 1 Overview of Communication Mode 4 2 4 1 2 Setting Communication Conditions...

Страница 4: ...CC Block Check Code 5 7 5 1 8 Error Codes 5 8 5 1 9 Restrictions 5 8 5 2 Command Code Reference 5 9 5 2 1 Transmitting Commands From External Device 5 9 5 2 2 Transmitting Messages From GT 5 15 6 Documentation 6 1 6 1 ASCII Code Table 6 2 6 2 Error Codes Table 6 3 6 3 Sheet for Basic Communication Area Allocation 6 4 6 4 Connection Diagrams 6 7 6 4 1 Precautions when connecting GT 6 7 6 4 2 RS232C...

Страница 5: ...Chapter 1 Communication Methods Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 6: ...ernal device can control screens or display data by reading writing the GT internal memories Reference For the details on the commands to read write the internal memories refer to Chapter 3 4 and 5 Depending on the communication mode settings the GT can send a message informing the external device when a switch was pressed Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr co...

Страница 7: ...mation on the switch input data settings of the GT 2 Two Way 1 mode In the two way 1 mode an external device sends a command to the GT and the GT sends a message for transmitting the information on the switch input data settings In this mode the GT does not send back a response for a command to the external device It sends back a response for a readout command The external device and the GT both h...

Страница 8: ...rnal device and the GT both have the transmission right Therefore the external device waits for the message transmission from the GT by interruption etc in order to receive a message for transmitting the information on the switch input data settings Key Point In the two way 2 mode that the response function is available the external device can detect errors because no response is returned Phone 80...

Страница 9: ...5 Data register GDT0 to GDT2047 Special Data Register GDT9080 to GDT9086 Built in clock data GDT GDT is a device memory area that is convenient to be used for the data treated in word unit and it is called data register The device size is 0000 to 2047 WGR WGR is a device memory area that is convenient to be used for the data treated in bit unit and it is called internal relay The device size is 00...

Страница 10: ...t be adjusted from the external device Change the mode of the GT to the setting mode and select Clock from the menu to adjust the time Reference For the detailed procedure refer to GT Series Technical Manual The clock function is not available for the models that a battery cannot be installed The values of era name stored in GDT9085 are the last two digits of the year Phone 800 894 0412 Fax 888 72...

Страница 11: ...Chapter 2 Settings and Connections Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 12: ...general purpose serial communication select General Purpose Serial for PLC Model Selecting Create New File from the start up menu displays the following dialog box to select models Click on the button at the window of the PLC model and select General Purpose Serial from the pull down menu Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 13: ...licking the Basic Setup tab displays the following screen Select the communication mode for the general purpose serial communication Basic Setup screen Selecting Communication Mode Select any one of the communication modes Command Response Two Way 1 and Two Way 2 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 14: ... GT05 GT12 GT32 GT32 E Unit numbers Specify unit numbers when more than one GTs are connected using C NET COM Port Connected to PLC External device This is used to specify the baud rate and transmission format when the GT is connected to an external device Clicking on the button displays a pull down menu from which the value to be set can be selected Baud rate Data length Stop bit Parity Select 96...

Страница 15: ...This setting is available for the RS232C type Key Point GT01 does not have the terminal for CS RS signal control When replacing GT01 with GT02 GT02L GT05 GT12 GT32 or GT32 E setting the CS RS control to Off enables to replace the models without changing the wirings for external devices Note When Transfer Data After Clear GT Screen is performed or Clear F ROM is performed from the setting mode of t...

Страница 16: ...eived data signals are exchanged 1 n connection 1 n connection is to connect one external device and more than two GTs The connection is multi dropped connection using devices such as C NET adapter Note For 1 n communication the usable communication mode is the command response mode only Note A RS485 RS232C converter that enables the connection with a maximum of 63 units is necessary to use up to ...

Страница 17: ...Chapter 3 Command Response Mode Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 18: ... on the external device It is not necessary to use the CS RS control signals in the command response mode When connecting an external device that does not control them short circuit the RS and CS terminals of the COM port on the GT side or set CS RS Control to Off Item Settings Caution Unit number 00 to 63 Do not specify the same unit number for multiple GTs Baud rate 115200 57600 38400 19200 9600...

Страница 19: ...rom the external device Create this command according to the format on the computer Response 1 In normal condition This is a message to be sent back to the external device from the GT Analyze this message according to the format and check the operation results or retrieve the data 2 When an error occurred Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 20: ... data area in word unit SRR 53 52 52 Read single relay bit PRR 50 52 52 Read multiple relay bits WRR 57 52 52 Read relay in word unit Write WDW 57 44 57 Write data area in word unit BDW 42 44 57 Write data area in byte unit DDW 44 44 57 Write data area in digit unit SDW 53 44 57 Write data area in bit unit WRW 57 52 57 Write relay in word unit BRW 42 52 57 Write relay in byte unit DRW 44 52 57 Wri...

Страница 21: ...is two characters of ASCII code which the exclusive OR of the data in the subject range was convreted to When the BCC check is not performed in the communication conditions for the GT use instead of BCC Calculation example of BCC Calculation example of BCC in Basic program Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 22: ...000 BCC error The value of BCC may be incorrect Check if there is no calculation mistake 0001 Format error A command format may be incorrect Check if it is correct 0002 NOT supported error A command used is not supported with the version of the GT Upgrade the version of the GT or use another command 0003 Address error The address specified does not exist in the GT Check the address of the transmit...

Страница 23: ...rd unit The word device area in the GT is read in word unit Command Response SRR Read single relay bit The bit device area in the GT is read specifying one bit Command Response Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 24: ...bit device area in the GT is read in bit unit Command Response WRR Read relay in word unit The bit device area in the GT is read in word unit Command Response Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 25: ...device area in the GT is written in word unit Command Response BDW Write data area in byte unit The word device area in the GT is written in byte unit Command Response Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 26: ... device area in the GT is written in digit unit Command Response SDW Write data area in bit unit The word device area in the GT is written in bit unit Command Response Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 27: ...device area in the GT is written in word unit Command Response BRW Write relay in byte unit The bit device area in the GT is written in byte unit Command Response Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 28: ... device area in the GT is written in digit unit Command Response SRW Write relay in bit unit The bit device area in the GT is written in bit unit Command Response Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 29: ...Chapter 4 Two way 1 Mode Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 30: ...ection and specify the unit numbers within a range of 00 to 63 The settings for Baud rate Data length and Parity check should be the same as the communication settings specified on the external device Connect the CS RS on the GT and external device when the CS RS control is necessary When unnecessary short circuit the RS and CS terminals on the GT side or set CS RS Control to Off Item Settings Cau...

Страница 31: ...o L and then send a response to the received command 2 If a command is sent from the external device during a message is being sent when the CS CTS is L the GT will continue the message transmission being receiving the command 3 If commands are sent successively during a message being sent under the condition that a response cannot be sent back and the CS CTS is L the GT will send back a response ...

Страница 32: ... according to the format and check the operation results or retrieve the data For write commands there is no response confirmation for the write result 2 In normal condition 2 When an error occurred Message This is a message to be sent to the external device when the switch operation was performed on the GT Analyze this message according to the format and check the operation results or retrieve th...

Страница 33: ...te relay in byte unit DRW 44 52 57 Write relay in digit unit SRW 53 52 57 Write relay in bit unit Command codes included in messages transmitted from GT to external device Type Character ASCII code Function Send message WDR 57 44 52 Send information on data area in word unit SRR 53 52 52 Send information on single relay bit WRR 57 52 52 Send information on relay in word unit Note By touching the f...

Страница 34: ...is two characters of ASCII code which the exclusive OR of the data in the subject range was convreted to When the BCC check is not performed in the communication conditions for the GT use instead of BCC Calculation example of BCC Calculation example of BCC in Basic program Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 35: ...t is correct 0002 NOT supported error A command used is not supported with the version of the GT Upgrade the version of the GT or use another command 0003 Address error The address specified does not exist in the GT Check the address of the transmitted command 0004 Receive buffer overflow The sent command exceeds the receivable number of bytes Check the number of bytes of the sent command 0005 Req...

Страница 36: ...WDR Read data area in word unit The word device area in the GT is read in word unit Command Response SRR Read single relay bit The bit device area in the GT is read specifying one bit Command Response Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 37: ...bit device area in the GT is read in bit unit Command Response WRR Read relay in word unit The bit device area in the GT is read in word unit Command Response Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 38: ...written in the word device area of the GT in byte unit Command DDW Write data area in digit unit Data is written in the word device area of the GT in digit unit Command SDW Write data area in bit unit Data is written in the word device area of the GT in bit unit Command Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 39: ... The bit device area in the GT is written in word unit Command BRW Write relay in byte unit The bit device area in the GT is written in byte unit Command Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 40: ...t The bit device area in the GT is written in digit unit Command SRW Write relay in bit unit The bit device area in the GT is written in bit unit Command Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 41: ...e message sent from the GT and the response to the readout command sent from the external device WDR SRR WRR In order to distinguish them adjust the numbers of words and contacts of the readout command sent from the external device The GT sends 1 word message when the data format of the write destination that is specified in the switch part or data part is 1 word When the format is 2 words the GT ...

Страница 42: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 43: ...Chapter 5 Two way 2 Mode Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 44: ...nd to the external device The readout commands in the word device area and the bit device area with responses can be used Key Point In the two way 2 mode that the response function is available the external device can detect errors because no response is returned Using two way 2 mode on GT01 GT02L The external device should support full duplex transmission to use the two way 2 mode on the GT01 GT0...

Страница 45: ... GT are sent at the same time Item Settings Caution Unit number 00 to 63 Do not specify the same unit number for multiple GTs Baud rate 115200 57600 38400 19200 9600 bps These settings should be the same as the settings specified on the external device Data length 7 8 bits Stop bits Fixed 1 bit Parity check Odd Even Invalid CS RS signal control No CS RS signal GT01 Fixed On GT11 GT21 On Off Other ...

Страница 46: ...o L and then send a response to the received command 2 If a command is sent from the external device during a message is being sent when the CS CTS is L the GT will continue the message transmission being receiving the command 3 If commands are sent successively during a message being sent under the condition that a response cannot be sent back and the CS CTS is L the GT will send back a response ...

Страница 47: ... Analyze this message according to the format and check the operation results or retrieve the data 3 In normal condition 2 When an error occurred Message This is a message to be sent to the external device when the switch operation was performed on the GT Analyze this message according to the format and check the operation results or retrieve the data Phone 800 894 0412 Fax 888 723 4773 Web www cl...

Страница 48: ...te relay in byte unit DRW 44 52 57 Write relay in digit unit SRW 53 52 57 Write relay in bit unit Command codes included in messages transmitted from GT to external device Type Character ASCII code Function Sent message WDR 57 44 52 Send information on data area in word unit SRR 53 52 52 Send information on single relay bit WRR 57 52 52 Send information on relay in word unit Note By touching the f...

Страница 49: ...is two characters of ASCII code which the exclusive OR of the data in the subject range was convreted to When the BCC check is not performed in the communication conditions for the GT use instead of BCC Calculation example of BCC Calculation example of BCC in Basic program Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 50: ...ect Check if it is correct 0002 NOT supported error A command used is not supported with the version of the GT Upgrade the version of the GT or use another command 0003 Address error The address specified does not exist in the GT Check the address of the transmitted command 0004 Receive buffer overflow The sent command exceeds the receivable number of bytes Check the number of bytes of the sent co...

Страница 51: ...WDR Read data area in word unit The word device area in the GT is read in word unit Command Response SRR Read single relay bit The bit device area in the GT is read specifying one bit Command Response Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 52: ...bit device area in the GT is read in bit unit Command Response WRR Read relay in word unit The bit device area in the GT is read in word unit Command Response Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 53: ...device area in the GT is written in word unit Command Response BDW Write data area in byte unit The word device area in the GT is written in byte unit Command Response Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 54: ... device area in the GT is written in digit unit Command Response SDW Write data area in bit unit The word device area in the GT is written in bit unit Command Response Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 55: ...device area in the GT is written in word unit Command Response BRW Write relay in byte unit The bit device area in the GT is written in byte unit Command Response Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 56: ... device area in the GT is written in digit unit Command Response SRW Write relay in bit unit The bit device area in the GT is written in bit unit Command Response Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 57: ...e message sent from the GT and the response to the readout command sent from the external device WDR SRR WRR In order to distinguish them adjust the numbers of words and contacts of the readout command sent from the external device The GT sends 1 word message when the data format of the write destination that is specified in the switch part or data part is 1 word When the format is 2 words the GT ...

Страница 58: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 59: ...Chapter 6 Documentation Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 60: ...6 1 ASCII Code Table Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 61: ...s that writingn is not available was sent Check the address of the sent command For GT02 GT02L GT05 GT12 GT32 and GT32 E Error code Error name Measures 0000 BCC error The value of BCC may be incorrect Check if there is no calculation mistake 0001 Format error A command format may be incorrect Check if it is correct 0002 NOT supported error A command used is not supported with the version of the GT...

Страница 62: ... for Basic Communication Area Allocation Word device area Part bit area Size words Address Application F E D C B A 9 8 7 6 5 4 3 2 1 0 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 63: ...Word device area Part area Size words Address Application F E D C B A 9 8 7 6 5 4 3 2 1 0 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 64: ...Bit device Size words Address Application F E D C B A 9 8 7 6 5 4 3 2 1 0 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 65: ...m for the 24 V RS422 type When connecting to the RS485 it may not be connected depending on the timing for switching between the transmission and reception at the external device Please check it using the actual equipment The terminal unit setting varies according to the external device to be connected Confirm it before setting a terminal unit 6 4 2 RS232C Connection GT01 When not performing CS RS...

Страница 66: ...S485 Connection In Command Response Mode Only 1 1 connection When connecting more than one GT Only when the communication mode is the command response mode Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...

Страница 67: ...FEB 2009 JUL 2009 Sep 2009 JUL 2010 DEC 2010 AUG 2011 DEC 2011 First Edition 2nd Edition Additions GT21 3th Edition Additions GT32 GT01R 4th Edition Additions GT05 5th Edition Change of Company name 6th Edition Additions GT12 7th Edition 8th Edition Additions GT02 9th Edition Additions GT02L Change of Company name 10th Edition Additions GT32 E 11th Edition Phone 800 894 0412 Fax 888 723 4773 Web w...

Отзывы: