COMMUNICATION> FUJI UG SERIES PROGRAMMABLE OPERATION DISPLAY TYPE: UGx30H-xxx UGx20H-xxx UG400H-xCx UG210H-xCx Create Tomorrow with Trustworthy Technology UG Series Users Manual <Operation> FEH375 UG Series Users Manual <Function> FEH376 Describes the functions available with the UG Series. Describes the operations of the editor software for the UG Series. Pre fac e Thank you for purchasing Fujis Programmable Operation Display, POD UG Series. This manual explains operating procedures for general-purpose serial communications with the UG Series. For a clearer understanding, please read this manual carefully. Also, the following manuals are available with the UG Series. Please use these manuals as required. Name Manual No. Contents UG210 Series Users Manual <Hardware> FEH337 Describes the UG210 Series hardware specifications. UG400 Series Users Manual <Hardware> FEH338 Describes the UG400 Series hardware specifications. UG20 Series Users Manual <Hardware> FEH352 Describes the UG520/420/320/221/220 Series hardware specifications. UG30 Series Users Manual <Hardware> FEH377 Describes the UG530/430/330 Series hardware specifications. Notes (1) No part of this manual may be reproduced in any form without the prior permission of the publisher. (2) The contents of this manual, including the specifications, are subject to change without notice for the purposes of improvement. (3) This manual was prepared with the utmost care. However, if you find any ambiguity, errors, etc., please contact any of our sales offices that are listed at the end of this manual. When you do so, be sure to quote the manual number given on the cover of this manual. In this manual, you will find various notes categorized under the following levels with the signal words "DANGER," and "CAUTION." DANGER Notes on Safe Use of POD indicates a potentially hazardous situation which, if not avoided, may result in minor or moderate injury and could cause property damage. CAUTION DANGER Never use the input function of POD for operations that may threaten human life or to damage the system, such as the switches to be used in case of emergency. Please design the system so that it can cope with malfunction of a touch switch. Turn off the power supply when you set up the unit, connect cables or perform maintenance and inspection. Failure to do so could cause an electric shock or damage to the unit. Never touch any terminals while the power is on. An electric shock may occur. You must put a cover on the terminals on the unit when you turn the power on and operate the unit. Without the terminal cover in place, an electric shock may occur. The liquid crystal in the LCD panel is a hazardous substance. If the LCD panel is damaged, never swallow the leaked liquid crystal. If the liquid crystal spills on your skin or clothing, use soap and wash off thoroughly. indicates an imminently hazardous situation which, if not avoided, will result in death or serious injury. Notes that there is a possibility that the item listed with may have serious ramifications. CAUTION CAUTION [Notes on System Design] Prevent the static electricity from being charged on the sheet metal where POD is mounted to avoid malfunction caused by noise. Never bundle control cables and input/output cables with high-voltage and large-current carrying cables such as power supply cables. Keep these cables at least 200 mm away from the power supply or high-voltage cables. Otherwise, malfunction may occur due to noise. For use in a nuclear energy facility, or other facility of such official importance, please consult your local distributor. [Notes on Installation] Operate (or store) POD under the conditions indicated in this manual and related manuals. Failure to do so could cause fire, malfunction, physical damage or deterioration. Understand the following environmental limits for use and storage of POD. Otherwise, fire or damage to the unit may result. - Avoid locations where there is a possibility that water, corrosive gas, flammable gas, solvents, grinding fluids or cutting oil can come into contact with the unit. - Avoid high temperature, high humidity, and outside weather conditions, such as wind, rain or direct sunlight. - Avoid locations where excessive dust, salt, and metallic particles are present. - Avoid installing the unit in a location where vibration or physical shock may be transmitted. Equipment must be correctly mounted so that the main terminal of POD will not be touched inadvertently. Tighten the POD mounting screws to the specified torque. Excessive tightening may distort the panel surface. Loose tightening may cause POD to come off,malfunction or be short-circuited. Tighten terminal screws on the power input terminal block equally to a torque of 0.5N m. Check the appearance of POD when it is unpacked. Do not use the unit if any damage or deformation is found. POD has a glass screen. Do not drop or give physical shock to the unit. [Notes on Cable Connection] Connect the cables correctly to the terminals of POD in accordance with the specified voltage and wattage. Over-voltage, over-wattage and incorrect cable connection could cause fire, malfunction or damage to the unit. Be sure to establish a ground of POD. The FG terminal must be used exclusively for the unit with the level of grounding resistance less than 100 . Prevent any conductive particles from entering into POD. Failure to do so may lead to fire, damage or malfunction. (To be continued) CAUTION [Notes on Maintenance and Operation] Fuji Electric FA Components & Systems Co., Ltd. is not responsible for any damages resulting from repair, overhaul or modification of POD that was performed by an unauthorized person. Do not use thinners for cleaning because they may discolor the POD surface. Use alcohol commercially available. Do not use a sharp-pointed tool when pressing a touch switch. Only experts are authorized to set up the unit, connect the cables or perform maintenance and inspection. POD is equipped with a lithium battery. Lithium batteries contain combustible material such as lithium or organic solvent. Mishandling may cause heat, explosion or ignition resulting in fire or injury. Read this manual and related manuals carefully and handle the lithium battery correctly as instructed. If a data receive error occurs when POD and the counterpart (PLC, temperature controller, etc.) are started at the same time, read the manual for the counterpart unit and handle the error correctly. When touch switch type is analog resistance film type, do not press two or more positions on the screen at the same time. If two or more positions are pressed at the same time, the switch located between the pressed positions activates. Please take note of this. Avoid displaying the same patterns for hours. It may cause afterimages due to the property of LCD display. If you use the fixed patterns for hours, use the auto-OFF function of the backlight. [Notes on Disposal] At the time of disposal, POD must be treated as industrial waste. F1 F2 F3 F4 F5 F6 F7 SYSTEM POWER switch Pressing two positions at the same time activates the switch in the center. Re c ord of Re vis ions Printing Date Reference No. Revised Contents July, 1999 FEH353 First Edition Second Edition Explanation on the system memory ($s) added Explanation on the UG30 Series added Explanation on 2-wire/4-wire connection added December, 2002 FEH353a Septemder, 2003 FEH353b Third Edition Some explanations reviewed November, 2003 FEH353c Fourth Edition Some explanations reviewed Cont e nt s Pre fac e Not e s on Safe Us e of POD Re c ord of Re vis ions Cont e nt s 1 Int e rfac e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 -1 Out line of Communic at ion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 -1 Diffe re nc e s be t we e n Conne c t ing t o a Unive rs al Se rial Port and Conne c t ing t o t he PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 -2 Us ing UG0 0 S-CW t o Cre at e a Sc re e n for a Unive rs al Se rial Port . . 1 -3 Sys t e m Configurat ion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 -6 Input / Out put Conne c t or . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 -7 Input / Out put Circ uit (for UG4 0 0 / 2 1 0 Se rie s ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 -8 UG3 0 / 2 0 Se rie s / RS-2 3 2 C Conne c t or Spe c ific at ions (CN1 ). . . . . . . . . . 1 -9 UG3 0 / 2 0 Se rie s / RS-4 2 2 Conne c t or Spe c ific at ions (CN1 ) . . . . . . . . . . 1 -1 1 UG4 0 0 Se rie s / RS-4 2 2 Te rminal Spe c ific at ions . . . . . . . . . . . . . . . . . . . . . . . . . 1 -1 3 1 :n Conne c t ion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 -1 4 2 Sys t e m Se t t ing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 -1 Mode l Se t t ing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 -1 Communic at ion Parame t e rs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 -2 3 St andard Type Prot oc ol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 -1 St andard Type Prot oc ol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 -1 Connection (1:1), Transmission Mode (w/ sum check) . . . . . . . . . . . . . . . . . . . . . . 3 -2 Connection (1:1), Transmission Mode (w/ sum check and CR/ LF) . . . . . 3 -4 Connection (1:n), Transmission Mode (w/ sum check) . . . . . . . . . . . . . . . . . . . . . . 3 -6 Connection (1:n), Transmission Mode (w/ sum check and CR/ LF) . . . . . 3 -7 Cont e nt s of Individual Prot oc ol Dat a It e ms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 -8 Re s pons e Time and BUSY. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 -9 Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 -1 0 Global s t at ion numbe r (FFH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 -1 0 Re ad CHR Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 -1 1 Re ad Me mory Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 -1 2 Writ e CHR Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 -1 3 Writ e Me mory Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 -1 4 Re t ry Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 -1 5 Int e rrupt Se t t ing Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 -1 6 Int e rrupt St at us Re ad Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 -1 7 Int e rrupt (ENQ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 -1 8 Swit c h Out put . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 -2 0 NAK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 -2 2 4 Me mory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 -1 Me mory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 -1 Us e r Me mory ($ u) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 -1 Sys t e m Me mory ($ s ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 -2 Swit c h ON Mac ro Ac t ion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 -4 Appe ndix One Byt e Charac t e r Code Chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APP-1 1 - 1 1 Interface Interface 1 Out line of Communic at ion As shown in the diagram above, when a general-purpose computer communicates with the POD, the general-purpose computer acts as the host and the POD acts as the slave. Switch, lamp, data display, etc., is allocated within the internal user memory ($u). When a screen number is specified from the host, a write action takes place to the internal memory address specified for the screen, and the specified screen is then displayed on the POD. If the screen is changed internally by a switch, etc., first the screen is changed, and then the screen number is read, and written in the memory specified for the screen. 1234 1234 1234 0 Ge ne ral-purpos e pe rs onal c omput e r Exclusive command POD int e rnal us e r me mory 16383 (4095 for UG400/210) POD Screen No. 0 Screen No. 1 Read Write 1234 1234 1 - 2 1 Interface Diffe re nc e s be t we e n Conne c t ing t o a Unive rs al Se rial Port and Conne c t ing t o t he PLC Input Format The input format used for screen number, block number, message number, etc, is fixed in [DEC]. Writ e are a When connecting to the PLC, only the three words shaded in the diagram below are used, but when connecting to a general-purpose computer, all 16 words shown below are used. Address Name Contents n+0 CFMDAT Sub-command/data n+1 SCRN_COM Screen status n+2 SCRN_No Display screen n+3 SW0 No. 0 switch data n+4 SW1 No. 1 switch data n+5 ENT0 Entry information 0 n+6 ENT1 Entry information 1 n+7 ENT2 Entry information 2 n+8 GREPNS Global response n+9 to Reserved (7 words) n+15 1 - 3 1 Interface Us ing UG0 0 S-CW t o Cre at e a Sc re e n for a Unive rs al Se rial Port Mode l s e le c t ion Select [Universal Serial] as the model that will communicate with the UG Series. 1) From the menu bar, go to [System Setting], and click on [PLC Type]. 2) The [Select PLC Type] dialog comes up. Select [Universal Serial] and click the [OK] button. 1 - 4 1 Interface Communic at ion parame t e rs Make communication parameter settings. 1) From the menu bar, go to [System Setting], and click on [Comm. Parameter]. 2) The [Comm. Parameter] dialog comes up. In the [Main 1], [Main 2], and [Detail] tab windows, set the baud rate, the signal level, etc. When using multi-drop, go to the [Detail] tab window, check [1:n] for [Connection], and enter [Local No]. It is possible to set the transmission mode by going to the [Detail] tab window and making settings for [Trans. Mode]. 1 - 5 1 Interface Memory settings ( for lamp, data display, etc. ) are required during screen creation, and the memory addresses are mapped as shown below. The memory addresses are $u0 to 16383 ($u0 to 4095 for the UG400/210). Assign memory addresses for system, lamp, data display, and mode within this range. 1234 1234 1234 . . . . . . . . . . . . . . . 16383 (4095 for UG400/210) Word (16 bits) Screen No. 1 Ge ne ral-purpos e pe rs onal c omput e r Exclusive command Read Write POD screen data Screen No. 0 POD int e rnal us e r me mory ($ u) 0 0016 0017 0020 0030 1200 1201 1202 1350 1352 1234 1234 1 - 6 1 Interface Sys t e m Configurat ion 1 :1 c onne c t ion (one c omput e r, one POD unit ) (For wiring, refer to page 1-9 to 14.) The system configuration for a 1:1 connection is shown. 1) Can be used when the transmission distance via RS-232C is within 15 m, and the transmission distance of RS-422 (485) is not greater than 500 m. 2) It is possible to use an interrupt (switch ON/OFF, ENTkey of keypad, screen changing, macro OUT_ENQ) when connecting a computer to a POD unit in a 1:1 connection. It becomes Four-wire when interrupt is used with RS-422 (485). 1 :n c onne c t ion (a maximum of 3 2 POD unit s c an be c onne c t e d t o one hos t ) (A maximum of 32 POD units can be connected to one host. For wiring, refer to page 1-14.) The system configuration for a 1:n connection is shown. 1) A station number specification is necessary to determine which POD will receive a command when a computer and POD units are 1:n connected. 2) Interrupt cannot be used when a computer and POD units are 1:n connected. When UG30/20 Series units are 1:n connected, it is convenient to use the UG00P-TC (Terminal Converter, optional). For details, refer to the UG20 Series Users Manual <Hardware> (FEH352) or the UG30 Series Users Manual <Hardware> (FEH377). POWER RUN SYSTEM F 2 F 3 F 1 F 4 F 5 F 6 F 7 General-purpose personal computer 1:1 Connection POD RS-232C RS-422 / 485 POWER RUN SYSTEM F 2 F 3 F 1 F 4 F 5 F 6 F 7 POWER RUN SYSTEM F 2 F 3 F 1 F 4 F 5 F 6 F 7 POWER RUN SYSTEM F 2 F 3 F 1 F 4 F 5 F 6 F 7 General-purpose personal computer POD POD POD RS-422 / 485 1:n Connection 1 - 7 1 Interface Input / Out put Conne c t or The connection method for communication between a general-purpose personal computer and a POD unit is shown in the diagram below. RUN/PRG RUN BZ RS-232C RS-422 T B 2 C N 1 G e n e r a l - p u r p o s e p e r s o n a l
c o m p u t e r U G 4 0 0 / 2 1 0
S e r i e s RS-232C RS-422 C N 1 G e n e r a l - p u r p o s e p e r s o n a l
c o m p u t e r U G 3 0 / 2 0
S e r i e s 1 - 8 1 Interface Input / Out put Circ uit (for UG4 0 0 / 2 1 0 Se rie s ) The input/output circuit diagram is shown below. Input c irc uit Out put c irc uit + - Input voltage Input impedance Input electric current Circuit configuration No-voltage contact NPN type 12 to 24 VDC 3.3 K 3 to 7 mA IN IN COM I n t e r n a l
c i r c u i t 12 to 24 VDC 1.5 K 3.3 K + - Max. drive electric current Residual voltage Circuit configuration 50 mA (12 to 24 VDC ) 1.7 V OUT OUT COM 12 to 24 VDC 22 I n t e r n a l
c i r c u i t Load Load 1 - 9 1 Interface UG3 0 / 2 0 Se rie s / RS-2 3 2 C Conne c t or Spe c ific at ions (CN1 ) The specifications for the RS-232C connector that links to the communication device are shown below. FG s ignal Connect the shielded cable to Pin No. 1 on the POD side. When there are FG terminals on both the communication device and the POD, connect the shielded cable to one of the FG terminals. If both of the terminals are connected, problems such as noise might result in abnor- mal data transmission. Wiring Perform wiring as shown below. 1 2 3 4 5 6 7 8 9 10 111213 14151617 1819 20 2122232425 Contact arrangement of the pin insert Pin No. Name Signal Name Signal Direction (POD Communication device) 1 Frame ground FG 2 Send data SD 3 Receive data RD 4 Request to send RS 5 Clear to send CS 7 Signal ground SG FG RD RS CS SG 1 3 4 5 7 RS SD CS SG 2 FG 1 4 5 7 SD 2 RD 3 Signal Pin No. Signal Pin No. POD (CN1) General-purpose personal computer Use twist-shielded cables. 1 - 10 1 Interface <Execute Flow Control> FG RD RS CS SG 1 3 4 5 7 RS SD CS SG 2 FG 1 4 5 7 SD 2 RD 3 Signal Pin No. Signal Pin No. POD (CN1) General-purpose personal computer Use twist-shielded cables. Int e rfac e c onne c t or Use the following types of RS-232C cable connectors. DSUB 25-pin connector (male) DDK type 17JE23250-02 (D8A) or equivalent Twis t -s hie lde d c able s Use twist-shielded cables provided by the following manufacturers. Brand Part Number Hitachi Cable CO-SPEV-SB(A) 3PX.3SQ Mitsubishi Cable SPEV-SB-MPC 3PX.3SQ 1 - 11 1 Interface UG3 0 / 2 0 Se rie s / RS-4 2 2 Conne c t or Spe c ific at ions (CN1 ) The specifications for the RS-422 connector that links to the communication device are shown below. Wiring Perform wiring as shown below. <Four-wire> <Two-wire> 1 2 3 4 5 6 7 8 9 10 111213 14151617 1819 20 2122232425 Contact arrangement of the pin insert Pin No. Name Signal Name Signal Direction (POD Communication device) 1 Frame ground FG 12 Send data +SD 13 Send data -SD 24 Receive data +RD 25 Receive data -RD FG -SD +RD -RD 1 13 24 25 SDA RDA SDB FG +SD 12 RDB Signal Pin No. Signal POD (CN1) General-purpose personal computer Use twist-shielded cables. FG -SD +RD -RD 1 13 24 25 SDA RDA SDB FG +SD 12 RDB Signal Pin No. Signal POD (CN1) General-purpose personal computer * Use twist-shielded cables. *Use UG00P-TC (Terminal Converter, optional) when POD is connected on the terminal block. 1 - 12 1 Interface <Execute Flow Control> UG00P-TC can not be used. General-purpose personal computer FG -CS +CS -RD 1 13 18 19 +RD 24 -RD 25 RSB RDA RSA SDA SDB FG +SD 12 RDB Signal Pin No. Signal POD (CN1) Use twist-shielded cables. Twis t -s hie lde d c able s Use twist-shielded cables provided by the following manufacturers. Brand Part Number Hitachi Cable CO-SPEV-SB(A) 3PX.3SQ Mitsubishi Cable SPEV-SB-MPC 3PX.3SQ 1 - 13 1 Interface UG4 0 0 Se rie s / RS-4 2 2 Te rminal Spe c ific at ions The specifications for the RS-422 terminal used for connection with the communication device are as shown below. Wiring Perform wiring as shown below. Twis t -s hie lde d c able s Use twist-shielded cables provided by the following manufacturers. +COM STOP RUN BZ -COM spare +RD -RD +SD -SD SG FG Signal Name Name Signal Direction (POD Communication device) FG Frame ground +SD Send data -SD Send data +RD Receive data -RD Receive data +SD +RD -RD FG SDB RDB FG RDA -SD SDA Signal Signal UG400 Terminal General-purpose personal computer Use twist-shielded cables. Brand Part Number Hitachi Cable CO-SPEV-SB(A) 3PX.3SQ Mitsubishi Cable SPEV-SB-MPC 3PX.3SQ 1 - 14 1 Interface 1 :n Conne c t ion * When you go to [Comm. Parameters] under the [System Setting], to [Main2], and check [Execute four-wire], 1:n connection is not available. Wiring Perform wiring as shown below. <Two-wire> When UG00P-TC is used: General-purpose personal computer * Use twist-shielded cables. FG -SD +RD -RD +SD Signal SG terminal resistance ( ON ) FG -SD +RD -RD +SD Signal SG terminal resistance ( OFF ) FG -SD +RD -RD +SD Signal POD+UG00P-TC (SW: Lower) SG terminal resistance ( OFF ) FG RDB SDA SDB RDA Signal SG POD+UG00P-TC (SW: Lower) POD+UG00P-TC (SW: Lower) When UG00P-TC is not used: Both +RD/ +SD and -RD/ -SD are short-circuited. <Four-wire> General-purpose personal computer * Use twist-shielded cables. FG -SD +RD -RD +SD Signal SG terminal resistance ( ON ) FG -SD +RD -RD +SD Signal SG terminal resistance ( OFF ) FG -SD +RD -RD +SD Signal POD+UG00P-TC (SW: Upper) SG terminal resistance ( OFF ) FG RDB SDA SDB RDA Signal SG POD+UG00P-TC (SW: Upper) POD+UG00P-TC (SW: Upper) Twis t -s hie lde d c able s Use twist-shielded cables provided by the following manufacturers. Brand Part Number Hitachi Cable CO-SPEV-SB(A) 3PX.3SQ Mitsubishi Cable SPEV-SB-MPC 3PX.3SQ 2 - 1 2 System Setting Mode l Se t t ing Mode l s e t t ing Select [Universal Serial] as the model that will communicate with the POD. 1) From the menu bar, go to [System Setting] and click on [PLC Type]. 2) The [Select PLC Type] dialog comes up. Select [Universal Serial] and click the [OK] button. System Setting 2 2 - 2 2 System Setting Address Name Contents n+0 CFMDAT Sub-command/data n+1 SCRN_COM Screen status n+2 SCRN_No Display screen n+3 SW0 No. 0 switch data n+4 SW1 No. 1 switch data n+5 ENT0 Entry information 0 n+6 ENT1 Entry information 1 n+7 ENT2 Entry information 2 n+8 GREPNS Global response n+9 to Reserved (7 words) n+15 Communic at ion Parame t e rs Baud Rat e Set the communication speed between the host and the POD. The possible speed settings are shown below. 4800 bps 9600 bps 19200 bps 38400 bps 57600 bps (setting impossible for UG400/210) 76800 bps (setting impossible for UG400/210) 115200 bps (setting impossible for UG221/220, UG400/210) When using POD connected with the bar code UG00P-MR, do not set the communi- cation speed to 76800 and 115200 bps. It may cause a communication failure. Signal Le ve l Set the communication form between the host and the POD. RS-232C/RS-422 Re ad Are a This memory area is necessary when the display screen is changed by a command received from the host. Make sure to allocate only $u memory. Address allocation is shown in the table below. For details on addresses, refer to Chapter 1 of the UG Series Users Manual <Function> (FEH376). Writ e Are a This memory area is used to write information regarding screen number, overlap, and input mode when the screen display status is changed by a command received from the host. Make sure to allocate only $u memory. Address allocation is shown in the table below. For details on addresses (n+0 to n+2), refer to Chapter 1 of the UG Series Users Manual <Function> (FEH376). Address Name Contents n+0 RCVDAT Sub-command/data n+1 SCRN_COM Screen status command n+2 SCRN_No External screen command 2 - 3 2 System Setting n+3 (SW0) switch data No. 0, n+4 (SW1) switch data No. 1 When the switch output memory is set at an address location from 80 to 95 in the system memory ($s) of internal memory, the switch number is written on lower 8 bits. The relationship between the switch number and the bit is shown in the following table (see page 3-20). System memory ($s) within internal memory The switch interrupt information of SW0 and SW1 is written only when the [Output Action] of a switch is [Momentary] or [Momentary W]. Example The relationship between the switch output memory setting and the switch number is shown in the following table. 00 01 02 03 04 05 06 07 08 09 0 0 0 0 0 0 0 10 11 12 13 14 15 Switch number Switch status 0: OFF 1: ON n+3 , n+4 (SW0/SW1) Address Contents 000 Screen No. 001 002 Overlap 0 Status 0: OFF 1: ON 003 Overlap 1 Display position X 004 Overlap 2 Display position Y 080 Universal serial port switch output 0 Output code 0 to 15 081 Universal serial port switch output 1 Output code 16 to 31 082 Universal serial port switch output 2 Output code 32 to 47 083 Universal serial port switch output 3 Output code 48 to 63 084 Universal serial port switch output 4 Output code 64 to 79 085 Universal serial port switch output 5 Output code 80 to 95 086 Universal serial port switch output 6 Output code 96 to 111 087 Universal serial port switch output 7 Output code 112 to 127 088 Universal serial port switch output 8 Output code 128 to 143 089 Universal serial port switch output 9 Output code 144 to 159 090 Universal serial port switch output 10 Output code 160 to 175 091 Universal serial port switch output 11 Output code 176 to 191 092 Universal serial port switch output 12 Output code 192 to 207 093 Universal serial port switch output 13 Output code 208 to 223 094 Universal serial port switch output 14 Output code 224 to 239 095 Universal serial port switch output 15 Output code 240 to 255 Output Memory Switch No. $s 080-00 0 $s 085-10 90 $s 095-15 255 2 - 4 2 System Setting n+5 (ENT0) entry information 0, n+6 (ENT1) entry information 1 The same contents as n+0 and n+1 of the [Info. Output Memory] that is set in the entry mode are written. Write operation occurs when the [ENTER] key is pressed in the entry mode. When the entry selection has changed, write operation will not occur. When (n+5) entry information 0 is read by the host, the write completion bit (bit 15) is reset. Data is written in the backup (escape) area before it is read. n+7 (ENT2) entry information 2 The entry mode window number where a write operation was executed is written. The relationship between the window number and base and the window number and overlap is shown in the following table. * In case of using the Table Data Display(s) as the entry targets of the Entry mode. The line number and the column number will be output to the address n+1 and the block number to the address n+2 of the Info. Output Memory, when the bit No.12 of Command Memory in the [Entry] dialog is ON [1]. In only this case, therefore, the window No. cannot be referred because the block No. is output to the address n+7 (ENT2) of the Write Area. n+8 (GREPNS) global response A response to a global command is written. The contents of a response are shown in the following table. n+9 to n+15 Reserved for functions expanded in the future. Window No. Contents 0 Base entry mode 1 Overlap 0 entry mode 2 Overlap 1 entry mode 3 Overlap 2 entry mode Memory Contents Contents 0000H Global command not received 0100H ACK Other Identical to NAK code (see page 3-22) 2 - 5 2 System Setting Cale ndar The values written in the calendar area are used for the calendar display. Set the top memory number. The relationship between memory and the calendar is shown in the following table. Calendar settings are performed in the read area under [RCVDAT (n+0)] at the leading edge of bit 11. The POD calendar uses the CPU clock. When precise time is necessary, set the calendar once a day for the POD UG30/20 and once an hour for the UG400/210. (Time loss: approximately 90 seconds a month for the UG30/20, approximately 1 to 3 seconds an hour for the UG400/210.) Re ad Cle ar Top Addre s s (Se t us e r me mory wit hin int e rnal me mory. ) The read clear area is the starting area from which the POD clears words that were previously read. Due to the fact that when this area is read once it is cleared to 0, if a read response error occurs, the data remains at 0 even if you attempt to read again. Set the areas top address number. Re ad Cle ar Words Set the number of words that will be used for clearing the read area. Re ad Cle ar Es c ape (Bac kup) Addre s s Set the top address for the read clear backup area. The area size will be the same as the previously described read clear area. The number of words written in the read clear backup area are the same as the number specified for the read clear area. Memory Contents n+0 Year (BCD 0 to 99) n+1 Month (BCD 1 to 12) n+2 Day (BCD 1 to 31) n+3 Hour (BCD 0 to 23) n+4 Minute (BCD 0 to 59) n+5 Second (BCD 0 to 59) n+6 Day of the week (BCD 0 to 6) 2 - 6 2 System Setting De fault Init ial Sc re e n Set the number of the screen to be displayed when power to the POD is turned on . Int e rrupt There are five interrupt settings: Switch ON interrupt Switch OFF interrupt Keypad interrupt Screen interrupt Macro : OUT_ENQ For details, refer to page 3-18. Exe c ut e Flow Cont rol Check the [Execute Flow Control] when interrupt from POD is needed to be prohibited. (e.g. when the host cannot receive interrupt data.) The action when you check the [Execute Flow Control] is shown below. When CS (pin 4) on POD side is ON: ->Interruption is output. When CS (pin 4) on POD side is OFF: ->Interruption is not output. When CS is ON, interruption information stored by then is output in succession. (Interruption information for 3 times can be stored at the most.) Four-wire This setting is available only for 1:1 communication with RS422 using four-wire. Normally, POD uses the same cables to send or receive data. Therefore, even if four- wire is used, POD communicates with the host by using only two-wire. (See the diagram below.) For this reason, send output remains OFF (High impedance) except for sending signals from POD. However, the action of send output OFF from POD is not executed, depends on hosts. In this case, you must select four-wire processing and check the Execute in four-wire in the Main 2. <Two-wire> Host POD (CN1) Signal FG RDA RDB SDA SDB Signal FG +SD -SD +RD -RD 2 - 7 2 System Setting Conne c t ion Mode Set the connection method for the POD and host. 1:1 There is one POD machine and one host. 1:n Multiple POD machines are connected to one host. Loc al St at ion Numbe r When multiple POD machines are connected to one host, set a station number for each POD machine. Parit y None Odd number Even number Se nd De lay Time Set the time for POD to send a response to a host after receiving a command from a host. Bus y Time Refer to page 3-9. Trans . Mode Set whether or not there should be a CR/LF or sum check at the end of transmission data. Dat a Le ngt h Fixed at 8 bits. St op Bit Stop bit settings are shown below. 1 bit 2 bits Code Fixed at DEC. Te xt Proc e s s When using text process, please choose either [LSB ->MSB] or [MSB->LSB] in order to make arrangements for the order of the first and the second bytes in one word. MSB LSB 15 0 LSB MSB 15 0 In case of selecting [LSB-> MSB] In case of selecting [MSB-> LSB] 3 - 1 3 Standard Type Protocol St andard Type Prot oc ol The connection mode and transmission mode are set in [Comm. Parameters] under [System Setting]. (See UG Series Users Manual <Function> (FEH376).) The mode contents are as follows. Conne c t ion mode 1:1......Used when one host communicates with one POD unit. 1:n......POD machines which are up to 32 are possible to be connected to the host. (Multi-drop specifications) Trans mis s ion mode There are four transmission modes, depending on whether or not sum check or CR/LF is attached to the end of transmission and received data, as shown below. Standard Type Protocol 3 Set whether or not to attach sum check or CR/LF to the end of transmission data. Indicates that there is an attachment. Transmission mode Sum check CR/LF 1 2 3 4 3 - 2 3 Standard Type Protocol Conne c t ion (1 :1 ), Trans mis s ion Mode (w/ s um c he c k) Used when one host communicates with one POD machine. HL HL POWER RUN SYSTEM F 2 F 3 F 1 F 4 F 5 F 6 F 7 HL POWER RUN SYSTEM F 2 F 3 F 1 F 4 F 5 F 6 F 7 C o m m a n d Transmission data Part A Transmission data Part B Transmission data Part A Transmission data Part B D L E D L E S T X D L E Error code D L E E T X S U M S T X N A K E T X S U M When POD data is read from the host side When the host writes data on the POD Host side POD side Transmission sequence or Contents Protocol HL HL HL C o m m a n d Transmission data Part A Transmission data Part B D L E D L E S T X Error code A C K N A K E T X S U M Host side POD side Transmission sequence or HL 3 - 3 3 Standard Type Protocol Int e rrupt proc e s s ing Interrupt conditions An interrupt code is sent to the host for the following actions. When the switch status changes from ON to OFF or from OFF to ON. When the [ENTER] switch on the keypad changes from OFF to ON. (If [Use the write flag] in [System Setting] is checked, write enable bit must be set in order to send interruption.) you go to [System Setting] and check [Use the write flag], the interrupt code will notbe transmitted when the write flag is set.) When the screen changes due to an internal switch. Macro : When OUT_ENQ in a macro command is run. Interrupt timing When an interrupt condition occurs while the host is transmitting a command or before the POD machine transmits a response, the interrupt code will be transmitted before the response is transmitted. To use an interrupt, it is necessary to enable interrupt code detection when a re- sponse is received on the host program. E N Q HL Command Response Interrupt Interrupt occurrence Host side (command) Interrupt code POD side DATA Interrupt data Interrupt Command 00H 01H 02H 10H 2FH When a regular switch is pressed When the [ENTER] switch of the keypad is pressed When a screen internal change occurs In case of macro command (user setting) to 3 - 4 3 Standard Type Protocol Connect ion (1:1), Transmission Mode (w/ sum check and CR/ LF) Used when one host communicates with one POD unit. (For BASIC) HL HL POWER RUN SYSTEM F 2 F 3 F 1 F 4 F 5 F 6 F 7 HL HL POWER RUN SYSTEM F 2 F 3 F 1 F 4 F 5 F 6 F 7 HL HL C o m m a n d Transmission data Part A Transmission data Part B Transmission data Part A Transmission data Part B D L E D L E S T X D L E Error code D L E E T X S U M C R L F S T X N A K C R L F E T X S U M C R L F When POD data is read from the host side When the host writes data on the POD Host side POD side Transmission sequence or Contents Protocol C o m m a n d Transmission data Part A Transmission data Part B D L E D L E S T X C R L F A C K E T X S U M C R L F Host side POD side Transmission sequence HL Error code N A K C R L F or 3 - 5 3 Standard Type Protocol Int e rrupt proc e s s ing Interrupt conditions An interrupt code is sent to the host for the following actions. When the switch status changes from ON to OFF or from OFF to ON. When the [ENTER] switch on the keypad changes from OFF to ON. (If [Use the write flag] in [System Setting] is checked, write enable bit must be set in order to send interruption.) When the screen changes by useing an internal switch. Macro : When OUT_ENQ in a macro command is run. Interrupt timing When an interrupt condition occurs while the host is transmitting a command or before the POD machine transmits a response, the interrupt code will be transmitted before the response is transmitted. To use an interrupt, it is necessary to enable interrupt code detection when a re- sponse is received on the host program. E N Q HL Command Response Interrupt
Interrupt occurrence Host side (command) Interrupt code POD side DATA Interrupt data C R L F Interrupt Command 00H 01H 02H 10H 2FH When a regular switch is pressed When the [ENTER] switch of the keypad is pressed When a screen internal change occurs In case of macro command (user setting) to 3 - 6 3 Standard Type Protocol Conne c t ion (1 :n), Trans mis s ion Mode (w/ s um c he c k) It is possible to attach as many as 32 POD unit to one host. (For information on global command, refer to page 3-10.) HL HL POWER RUN SYSTEM F 2 F 3 F 1 F 4 F 5 F 6 F 7 HL POWER RUN SYSTEM F 2 F 3 F 1 F 4 F 5 F 6 F 7 HL HL HL C o m m a n d HL S t a t i o n
N o. S t a t i o n
N o. Transmission data Part A Transmission data Part B Transmission data Part A Transmission data Part B D L E D L E S T X D L E Error code D L E E T X S U M HL S t a t i o n
N o. S T X N A K E T X S U M When POD data is read from the host side When the host writes data on the POD Host side POD side Transmission sequence or Contents Protocol HL HL HL C o m m a n d HL S t a t i o n
N o. S t a t i o n
N o. Transmission data Part A Transmission data Part B D L E D L E S T X Error code S t a t i o n
N o. HL A C K N A K E T X S U M Host side POD side Transmission sequence or 3 - 7 3 Standard Type Protocol Connect ion (1:n), Transmission Mode (w/ sum check and CR/ LF) It is possible to attach as many as 32 POD unit to one host. (For information on global command, refer to page 3-10.) POWER RUN SYSTEM F 2 F 3 F 1 F 4 F 5 F 6 F 7 POWER RUN SYSTEM F 2 F 3 F 1 F 4 F 5 F 6 F 7 HL HL HL HL C o m m a n d Transmission data Part A Transmission data Part B Transmission data Part A Transmission data Part B D L E D L E S T X D L E Error code D L E E T X S U M C R L F S T X N A K C R L F E T X S U M C R L F When POD data is read from the host side When the host writes data on the POD Host side POD side Transmission sequence or Contents Protocol HL S t a t i o n
N o. HL S t a t i o n
N o. HL S t a t i o n
N o. HL HL HL C o m m a n d Transmission data Part A Transmission data Part B D L E D L E S T X Error code C R L F A C K N A K C R L F E T X S U M C R L F Host side POD side Transmission sequence or HL S t a t i o n
N o. HL S t a t i o n
N o. HL S t a t i o n
N o. 3 - 8 3 Standard Type Protocol Cont e nt s of Individual Prot oc ol Dat a It e ms Trans mis s ion c ont rol c ode The transmission control codes are shown in the table below. St at ion numbe r The station number is used to specify the POD machine that is being accessed by the host. The station number is converted into two-digit ASCII code (HEX) within the range of 00H to 1FH (0 to 31). POD station number setting is performed on the UG00S-CW. Sum c he c k c ode (SUM) The data subject to a sum check is added and the lower-order 1 byte (8 bits) of the result (sum) is converted into two-digit ASCII code (HEX). The contents of the sum check code are shown below. [Example] Sum check will be as is shown below when data is transmitted as: command [WM] (data writing), address [05AD] (1453), and memory data [0F2A] (3882) in transmission mode [w/o CR/LF, w/ sum check]. However, in the case of an interrupt, data from ENQ to ETX is subject to a sum check. Signal Name Code (HEX) Contents STX 02H Start of transmission block ETX 03H End of transmission block ENQ 05H Interrupt ACK 06H Acknowledged response CR 0DH Carriage return DLE 10H Change contents within a block NAK 15H Negative response LF 0AH Line feed STX Command DLE Address ETX SUM 02H 57H 4DH 10H 30H 35H 41H 44H 03H 34H 44H "W" "M" "0" "5" "A" "D" "4" "D" Count 30H 30H 30H 31H "0" "0" "0" "1" Memory data 30H 46H 32H 41H "0" "F" "2" "A" 02H + 57H + 4DH + 10H + 30H + 35H + 41H + 44H + 30H + 30H + 30H + 31H + 30H + 46H + 32H + 41H + 03H =4DH Error c ode An error code is sent along with an NAK response. An error code is transmitted as a two-digit ASCII code (HEX). For details, see page 3-22. 3 - 9 3 Standard Type Protocol Re s pons e Time and BUSY Response time varies depending on the type of command. RM/ RI/ RC These commands immediately send a response once receipt of data is complete. No NAK [01] (BUSY) signal is given. WM/ TR/ WI/ WC Once receipt of data is complete, these commands first check the display status. If the display status is found to be complete, a response is sent and a command is executed. If the status is BUSY and the display is completed within the time set in [Busy Time], a response is sent. If the display is not completed within the specified time, an NAK [01] (BUSY) signal is sent. In this case, it is necessary to retransmit the command. When [Busy Time] is set as [0], the machine waits until the display is complete, and then a response is transmitted after a command is executed. T T = 10 ms or less Host side (Command) POD (Response) T T = [Busy Time] + 10 msec or less Host side (Command) POD (Response) 3 - 10 3 Standard Type Protocol Command Command Commands are displayed below. Global s t at ion numbe r (FFH) Active for connection mode (1:n). When the station number is set as [FFH] and a command is executed, all POD unit that are connected send a response in reply to a command from the host. Commands for which global station number are active are shown below. If commands other than these are used, a command error will occur. Responses to global station numbers are not transmitted to the host. However, re- sponses are written in write area (n+8) as shown below. RI Signal Name Name Contents RM Read Read data memory WM Write Write data memory TR Retry Retry when NAK [01] is BUSY WI Interrupt Setting Allow interrupt (Connection mode 1:1) Read Interrupt Read interrupt setting status Status (Connection mode 1:1) RC Read CHR Read data memory as characters WC Write CHR Write data memory as characters Signal Name Name Contents WM Write Write data memory WC Write CHR Write data memory as characters Memory Contents Contents 0000H Global command not received 0100H ACK Other Same as NAK code (see page 3-22) 3 - 11 3 Standard Type Protocol Re ad CHR Command When memory contents are in the form of characters when data is read, 1 character (1 byte) is converted into 2-byte ASCII code and transmitted. However, when this command is used, contents are not converted before transmission, and thus, the transmission time is decreased by approximately 1/2. HL A d d r e s s A d d r e s s C o u n t C o u n t D L E R C D L E S T X E T X S U M HL D L E D L E S T X E T X S U M Host side POD side Transmission data Memory data Memory data Transmission data Read CHR command Read CHR command 02H 52H43H 33H33H 30H 30H 31H 34H 30H 30H 30H 34H 10H 03H D L E R C 0 0 1 4 0 0 0 4 3 3 S T X E T X 02H 31H46H 41H 42H 43H 44H 03H 10H D L E A B C D 1 F S T X E T X Host side POD side Transmission data Example Address: Call up the 4 characters that are written at the top of 0020 (0014H). Host side There should be no more than 5 DLEs. Address: Top address of the data memory to be read (HEX ASCII) Count: Number of characters to be read (HEX ASCII) When the data to be read is not continuous, DLE is inserted as a delimiter between the breaks. POD side Address and count are omitted and DLE and data are transmitted. The A, B, C, and D character codes are sent from the POD as shown below. 3 - 12 3 Standard Type Protocol HL A d d r e s s A d d r e s s C o u n t C o u n t D L E R M D L E S T X E T X S U M D L E D L E S T X Host side POD side Transmission data Memory data HL E T X S U M Memory data Transmission data Read memory command Read memory command 02H 52H4DH 33H42H 30H 30H 31H 34H 30H 30H 30H 32H 10H 03H D L E R M 0 0 1 4 0 0 0 2 3 B S T X E T X 02H 41H46H 34H 31H 34H 32H 41H 42H 43H 44H 34H 33H 34H 34H 03H 10H D L E A B C D A F S T X E T X Host side POD side Example Address: Read the character data contained in 0020 (0014H). Re ad Me mory Command Note : Due to the fact that communication speed is increased when you use the read CHR command to read characters, it is recommended that you use this command. Host side There should be no more than 5 DLEs. Address: Top address of the data memory to be read (HEX ASCII) Count: Amount of data memory to be read (HEX ASCII) When the data to be read is not continuous, DLE is inserted as a delimiter between the breaks. POD side Address: Data memory address to be read as specified by the host (HEX ASCII) Count: Data memory contents ranging from the top memory address to the address that is increased by the specified count. The read sequence is the same as the command sequence (HEX ASCII). " A " " B " " C " a n d " D " a r e s e n t f r t h e U G S e r i e s i n t h e f o r m s h o w n b e l o A B C and D are sent from the POD in the form shown below. 3 - 13 3 Standard Type Protocol Writ e CHR Command When memory contents are in the form of characters, it is necessary to use a write com- mand to convert 1 character (1 byte) into 2 byte ASCII code and then transmit. However, with this command contents are transmitted just as they are, and consequently, the trans- mission time is decreased by 1/2. (Character codes from 00 to 1F cannot be used.) HL WORD WORD WORD WORD A d d r e s s A d d r e s s C o u n t C o u n t D L E W C D L E S T X E T X S U M A C K Host side POD side Transmission data Memory data Memory data Write CHR command Write CHR command 02H 57H43H 38H35H 30H 30H 36H 34H 30H 30H 30H 38H 45H 46H 47H 48H 49H 4AH 4BH 4CH 10H 03H D L E W C 0 0 6 4 0 0 0 8 E F G H I J K L 8 5 S T X E T X A C K Host side POD side Example Send data to display the following characters on the POD. Address: 0100 (0064H), EF Address: 0101 (0065H), GH Address: 0102 (0066H), IJ Address: 0103 (0067H), KL Host side There should be no more than 5 DLEs. Address: Address of the memory to be written (HEX ASCII) Count: Number of write characters (HEX ASCII) Memory data: Data to be written When write data is not continuous, DLE is inserted as a delimiter between the breaks. r o m l o w . 3 - 14 3 Standard Type Protocol Writ e Me mory Command Note : Due to the fact that communication speed is increased when you use the write CHR command to write characters, it is recommended that you use this command. HL D L E W M D L E S T X E T X S U M A C K Host side POD side Transmission data Memory data Memory data Write memory command Write memory command WORD WORD A d d r e s s C o u n t WORD WORD A d d r e s s C o u n t 02H 57H4DH 43H30H 30H 30H 36H 34H 30H 30H 30H 34H 34H 35H 34H 36H 34H 37H 34H 38H 34H 39H 34H 41H 34H 42H 34H 45H 46H 47H 48H 49H 4AH 4BH 4CH 43H 10H 03H D L E W M 0 0 6 4 0 0 0 4 E F G H I J K L C 0 S T X E T X A C K Host side POD side Example Send data to display the following characters on the POD. Address: 0100 (0064H), EF Address: 0101 (0065H), GH Address: 0102 (0066H), IJ Address: 0103 (0067H), KL Host side There should be no more than 5 DLEs. Address: Address of the data memory to be written (HEX ASCII) Count: Data memory contents to be written (HEX ASCII) When write data is not continuous, DLE is inserted as a delimiter between the breaks. 3 - 15 3 Standard Type Protocol Re t ry Command Use this command when a write command/write CHR command is sent and an NAK error code [01] is returned. HL T R E T X S T X S U M A C K Host side POD side Command A Command A response Retry command Write CHR command * In case the error code [01] is returned, the command A is on standby as the POD is currently engaged in display processing. Error code 01H * Retry command re-sends the command A which is waiting. 3 - 16 3 Standard Type Protocol Int e rrupt Se t t ing Command HL HL W I S T X E T X S U M A C K Host side POD side Interrupt Setting Command Interrupt Setting Command Example Host side Interrupt conditions can be specified when the interrupt data bit is set. Data: Interrupt status (HEX ASCII) Interrupt conditions
Switch ON: Interrupt when the switch changes from OFF to ON (only when [Action] of the switch is [Normal], [Block], [+Block], [-Block], or [Mode]) Switch OFF: Interrupt when the switch changes from ON to OFF (only when [Action] of the switch is [Normal],[Block], [+Block], [-Block], or [Mode]) Keypad write: Interrupt when the [ENTER] switch on the keypad is pressed Screen internal change: Interrupt when the screen changes based on an internal switch * Macro (OUT_ENQ) : Enable to interrupt all the time W I 0 C 1 8 S T X E T X A C K Host side POD side Interrupt settings are shown below. Switch ON: Prohibited Switch OFF: Prohibited Keypad/character entry write: Allowed Screen internal change: Allowed D a t a In this case, the data contents are as shown below. 0 00 01 02 03 04 05 06 07 0 0 0 Switch ON Switch OFF Keypad write & character entry Screen internal change 00 01 02 03 04 05 06 07 0 0 0 0 1 1 0 0 Switch ON Switch OFF Keypad write & character entry Screen internal change 02H 57H49H 30H43H 31H38H 03H 0: Interrupt prohibited 1: Interrupt allowed 3 - 17 3 Standard Type Protocol Int e rrupt St at us Re ad Command HL R I S T X E T X S U M Host side POD side Interrupt Status Read Command Interrupt Status Read Command 0: Interrupt prohibited 1: Interrupt allowed HL HL S T X E T X S U M D a t a 00 01 02 03 04 05 06 07 0 0 0 0 Switch ON Switch OFF Keypad write & character entry Screen internal change Example R I A 0 S T X E T X 0 3 6 8 S T X E T X Host side POD side In this case, the data contents are as shown below. 00 01 02 03 04 05 06 07 0 0 0 0 0 0 1 1 Switch ON Switch OFF Keypad write & character entry Screen internal change Interrupt status is read. Switch ON: Allowed Switch OFF: Allowed Keypad/character entry write: Prohibited Screen internal change: Prohibited 02H 52H49H 41H 03H 30H 02H 30H33H 36H 03H 38H Host side Interrupt status is read. Data: Interrupt status (HEX ASCII) 3 - 18 3 Standard Type Protocol Int e rrupt (ENQ) When interrupt is used when the connection mode is (1:1), this code is transmitted. The transmission occurs when a regular key is pressed or when the [ENTER] key is pressed in the entry mode. (For information on interrupt timing, refer to page 3-3.) Interrupt data becomes the contents of write areas n+2 to n+7. (See page 2-2.) SW0 0 0 SW1 ENT0 ENT1 ENT2 WORD WORD WORD WORD WORD WORD HL POD side Screen No When a regular key is pressed E N Q E T X S U M 0 ENT 1 2 3 4 5 6 SW0 0 1 SW1 ENT0 ENT1 ENT2 WORD WORD WORD WORD WORD WORD HL POD side Screen No When the [ENTER] switch on the keypad is pressed ENT0/1/2 is the same as system memory area (n+5, n+6, n+7). When the [ENTER] switch on the keypad is pressed. E N Q E T X S U M SCREEN2 SCREEN5 SW0 0 2 SW1 ENT0 ENT1 ENT2 WORD WORD WORD WORD WORD WORD HL POD side Screen No When a screen internal change occurs E T X E N Q S U M 3 - 19 3 Standard Type Protocol It is possible to use a macro command to initiate an interrupt. There are two ways to use a macro command to transmit data. You can either convert the data into HEX code and transmit it, or you can transmit the data just as it is without convert- ing it. The macro command uses (OUT_ENQ). For details, refer to Chapter 13 of the UG Series Users Manual <Function> (FEH376). X X 0 0 Word data WORD WORD HL POD side Interrupt with a macro command (OUT_ENQ) E N Q E T X S U M Word transmission Word transmission Interrupt code (10H to 2FH) Transmission memory address Number of
transmission words X X 0 1 Word data WORD WORD HL POD side E N Q E T X S U M Character transmission Character transmission Interrupt code (10H to 2FH) Transmission memory address Number of transmission characters 3 - 20 3 Standard Type Protocol Swit c h Out put (see pages 2-2, 3-3, and 3-18) When [Output Action] of a switch is set to [Momentary] and [Output Memory] is set in location ($s80-95) of system memory, the following actions occur when the switch is pressed. When the bit memory specified in system memory is set, and when the switch is released, it is reset. The switch number that corresponds to the bit is written in write areas n+3 and n+4. For the relationship between the bit and the switch number, refer to page 4-3. Analog t ype Normally, only one switch can be pressed. (Fixed to 1 output) However, if you go from the menu bar to [System Setting (A) ] to [Function Switch Setting (R) ] (or if you go from the menu bar to [Edit (E) ] to [Local Function Switch Setting (R)]), and check [Use Function Switch], it is possible to press two points (2 outputs) at the same time. For 1 output ([Use Function Switch] is not checked), the switch number and switch information are written in n+3. For 2 outputs ([Use Function Switch] is checked), the switch number and switch information are written in n+3 and n+4 when two points are pressed. 3 - 21 3 Standard Type Protocol The switch number is written in the following way in write areas n+3 and n+4. When the POD is connected to the host in a 1:1 connection, interrupt occurs as is shown be in. SW0 0 0 SW1 ENT0 ENT1 ENT2 WORD WORD WORD WORD WORD WORD HL POD side Screen No When a regular key is pressed E N Q E T X S U M 00 01 02 03 04 05 06 07 08 09 0 0 0 0 0 0 0 10 11 12 13 14 15 Switch number Switch status 0 : OFF 1 : ON n+3 , n+4 (SW0/SW1) Mat rix t ype When you go from the menu bar to [Edit (E) ] to [Screen Setting (S) ], you can select between 1output or 2 outputs. For 1 output, the switch number and switch information are written in n+3. For 2 outputs, the switch number and switch information are written in n+3 and n+4 when 2 switches are pressed simultaneously. 3 - 22 3 Standard Type Protocol NAK Error c ode s 01H: The POD is currently engaged in display processing. The received command is canceled due to display processing. Wait a few moments and re-transmit the command. 02H: Overrun/Framing error Overrun or framing was present within the received data. Re-transmit the data. 03H: Parity error There was a parity error in the received data. Re-transmit the data. 04H: Sum check error A sum check error occurred in the received data. 05H: Address error The address specified by the memory read/write command is incorrect. Check address or counter and re-transmit the command. 06H: Count error The memory read/write count was 0. 07H: Screen error The data to be written in read area n+2 (screen status command), as specified by a write command, is not registered on the screen. Check the screen number and re-transmit the data. 08H: Format error The number of DLEs is 0 or greater than 6. 09H: Received data over The number of write command data received from the host exceeded that of data shown below. Write memory command = 512 words Write CHR command = 1024 bytes 3 - 23 3 Standard Type Protocol 0BH: Retry command error When a retry command is received, there is no BUSY status (NAK [01]) command. 0FH: ETX error There is no ETX code. 10H: DLE error There is no DLE code. 11H: Character error There was a character that is not used in the received data. (Other than 0 to F) Check the characters and re-transmit the data. 12H: Command error The command is invalid. 4 - 1 4 Memory Map Memory Map 4 Me mory Inside the POD, there is internal memory necessary for screen display called user memory ($u), as well as memory that the POD uses for the system called system memory ($s). Us e r Me mory ($ u) 16384 words are available for user memory (4096 words for the UG400/210). The following items are set in this memory. Screen data (lamp, data display, graph, etc.) System setting memory (read area, write area, calendar, etc.) Memory used when creating a macro command The memory map is shown below. 16383 (4095 for UG400/210) Address 16377 Address 16378 Address 16379 Address 16380 Address 16381 Address 16382 Address 16383 U s e r
m e m o r y
( 1 6 3 8 4
w o r d s ) Address 0000 Address 0001 Address 0002 Address 0003 Address 0004 Address 0005 Address 0006 0000 POD internal user memory 4 - 2 4 Memory Map Sys t e m Me mory ($ s ) System memory is memory that writes POD machine action status when the POD is currently displaying something. With this written information, it is possible to check overlap status, buffer area, printer, backlight, and slave station status in multi-drop connection mode. * System memory cannot be read or written from the host computer. In the table below, a small part of system memory is extracted. For more information on system memory, refer to UG Series Users Manual <Function> (FEH376) Appendix 1. Address Contents
79 80 Universal serial Switch output 0 Output codes 0 to 15 81 Universal serial Switch output 1 Output codes 16 to 31 82 Universal serial Switch output 2 Output codes 32 to 47 83 Universal serial Switch output 3 Output codes 48 to 63 84 Universal serial Switch output 4 Output codes 64 to 79 85 Universal serial Switch output 5 Output codes 80 to 95 86 Universal serial Switch output 6 Output codes 96 to 111 87 Universal serial Switch output 7 Output codes 112 to 127 88 Universal serial Switch output 8 Output codes 128 to 143 89 Universal serial Switch output 9 Output codes 144 to 159 90 Universal serial Switch output 10 Output codes 160 to 175 91 Universal serial Switch output 11 Output codes 176 to 191 92 Universal serial Switch output 12 Output codes 192 to 207 93 Universal serial Switch output 13 Output codes 208 to 223 94 Universal serial Switch output 14 Output codes 224 to 239 95 Universal serial Switch output 15 Output codes 240 to 255 96 97
. . . . . . . . 4 - 3 4 Memory Map Addre s s 0 0 8 0 t o 0 0 9 5 The [Output Memory] of a switch is assigned to bits in this area. Set [Output Action] to [Momentary]. When a switch is pressed, bit memory is set to 1 and the corresponding switch number is written in system setting areas n+3 and n+4. The relationship between the bit and the switch number is shown in the following diagram. For details about the output of a switch, see page 3-20. 00 0 01 1 02 2 03 3 04 4 05 5 06 6 07 7 08 8 09 9 10 10 11 11 12 12 13 13 14 14 15 15 MSB LSB 0080 address Switch number 0081 address Switch number 0090 address Switch number 0094 address Switch number 0095 address Switch number 00 16 01 17 02 18 03 19 04 20 05 21 06 22 07 23 08 24 09 25 10 26 11 27 12 28 13 29 14 30 15 31 MSB LSB 00 224 01 225 02 226 03 227 04 228 05 229 06 230 07 231 08 232 09 233 10 234 11 235 12 236 13 237 14 238 15 239 MSB LSB 00 240 01 241 02 242 03 243 04 244 05 245 06 246 07 247 08 248 09 249 10 250 11 251 12 252 13 253 14 254 15 255 MSB LSB 00 160 01 161 02 162 03 163 04 164 05 165 06 166 07 167 08 168 09 169 10 170 11 171 12 172 13 173 14 174 15 175 MSB LSB 4 - 4 4 Memory Map Swit c h ON Mac ro Ac t ion The macro command that controls a repeat function in the switch ON macro, as well as the processing sequence, is shown in the following diagram. Switch action flowchart Switch ON Interlock? Lamp ON graphics Buzzer ON Buzzer ON Output Lamp ON graphics ON macro Execution ON macro End Buzzer Lamp Lamp Continue ON macro? Interlock condition? internal external external Yes No not satisfied satisfied Yes No Yes No Macro command Present Address 64 to 66 Clear Macro command Execution Address 65 0 Address 66 0 Repeat macro command Address 64 0 Switch OFF Switch OFF Suspend repeat function of switch End Add repeat function to switch Yes Yes Yes Yes Yes No No No No Flowchart when the repeat function is controlled by macro command APP - 1 Appendix One Byte Character Code Chart Appe ndix One Byte Character Code Chart 2 SP ! " # $ % & ' ( ) * + , - . / 3 0 1 2 3 4 5 6 7 8 9 : ; < = > ? 4 @ A B C D E F G H I J K L M N O 5 P Q R S T U V W X Y Z [ ] ^ _ 6 ' a b c d e f g h i j k l m n o 7 p q r s t u v w x y z { | } ~ 8 9 A B C D E F 1 0 0 1 2 3 4 5 6 7 8 9 A B C D E F L o w e r
o r d e r Upper order Gate City Ohsaki, East Tower, 11-2, Osaki 1-chome, Shinagawa-ku, Tokyo, 141-0032, Japan Phone: +81-3-5435-7135, 7136, 7137, 7138 Fax: +81-3-5435-7456, 7457, 7458, 7459 URL: http: // www.fujielectric.co.jp / fcs / eng / Information in this manual is subject to change without notice. 2003 - 11 (PDF)