NT21_Reference Manual (V069-E1-1) (986756), страница 80
Текст из файла (страница 80)
of changed word (2 BCD digits)01 to 03Area type of the changed direct areaNo. of the changed wordPT control area01PT notify area01Window control area03d11, d12, d13, d14, ..., dn1, dn2, dn3, dn4:Contents of the direct area after the change (1 to 4 hexadecimaldigits)0 to FFFFHArea type of the changed direct areas1, s2:Contents to be changedPT control areaScreen numberPT notify areaPT status notify bitWindow control areaWindow numberWindow X coordinateWindow Y coordinateIt is possible to omit initial zeroes so that there are less than 4digits.Individual words of data are delimited by commas.Checksum (2 hexadecimal digits)This is always added.ResponseFormatNoneFunctionNotifies to the host the fact that there has been a change in the status of the PTand the contents of the direct areas (PT control area, PT notify area and windowcontrol area) have changed.However, in the following cases, a dedicated command is issued and thereforethe direct area changing notify command is not issued.When numeric input has occurred:Numerical input notify commandWhen character string input has occurred: Character string input notifycommand394SectionCommands/Responses4-3For details of direct area, refer to 2-2 Areas for Control/Notification on page52.ExampleExample 1.
Notification of Change in the PT Control AreaNotification of change in the PT control area is issued when screen is switchedby operations at the PT, such as touch switch operation. In the example below, itis ascertained that the screen has been switched to screen number 21 (BCD) bya switch screen touch switch.Command[ESC]PM0100011540[CR]1B504D303130303031313534300DFirst word address of PT control area:Wd 100Number of changed words in PT control area:1 wordScreen number (hexadecimal):15H (screen No.21 in BCD)Checksum:40HExample 2. Notification of Change in the PT Notify AreaNotification of change in the PT notify area is issued when the status of the PT ischanged (such as screen printing). In the example below, it is ascertained thatthe printing is being executed currently from the fact that the bit 7 (screen printing) in the PT notify bit is ON (1).Command[ESC]PM0111011B504D3031313130318080AC[CR]3830383041430DFirst word address of PT notify area:Wd 110Number of changed words in PT control area:1 wordPT status notify bit (hexadecimal):8080H(PT operation status bit,screen printing bit: ON)Checksum:ACHReference: When NT20S or NT30/620 compatible mode is being used, the current screennumber occupies the first word of the PT status notify area and the words containing the updated memory table entry number and PT status notify bits areshifted down one word.Example 3.
Notification of Change in the Window Control AreaNotification of change in the window control area is issued when a window iscontrolled by the operation at the PT. It is possible to know the screen number ofthe window that is opened and the display position of the window (bottom leftcoordinate (X, Y) of the window). In the example below, it is ascertained that thewindow screen No.16 is displayed at the position on X: 160, Y: 99.395SectionCommands/Responses4-3Command[ESC]PM0120031B504D30313230303310,A0,6331302C41302C363371[CR]37310DFirst word address of window control area:CIO 120Number of changed words in window control area:3 wordsScreen number (hexadecimal):Reference:10H(screen No.16 in BCD)Window X coordinate (hexadecimal):A0H (160 in BCD)Window Y coordinate (hexadecimal):63H (99 in BCD)Checksum:71HContents ofdirect area afterthe changeS With memory link communication, bit 12 (screen switch strobe), bit 11 (numeral setting strobe flag) and bit 10 (character string setting strobe flag) of PT status notify bit do not go ON/OFF.
It is possible to know them by direct areachanging notify command, numeral input notify command and characterstring input notify command.S When the PT was switched to RUN mode from system menu or error screen,notification of change in PT notify area (PT operation status: ON) is issued tothe host.Also, when the PT was switched to system menu or error screen from RUNmode, notification of change in PT notify area (PT operation status: OFF) is issued to the host.4-3-19 PT Memory Changing Notify Command(Sent from PT to Host)CommandFormat[ESC]1BSMc1c2c3c4l1l2d11d12* ** *dn1* *dn2* *dn3* *dn4* *s1* *s2[CR]* ** ** ** ** ** *0D534D* *d13d14,* ** *2Cc1 to c4:First word address of PT memory (4 BCD digits)0000 to 9999l1, l2:Number of words in direct area (2 BCD digits)01 to 50d11, d12, d13, d14, ..., dn1, dn2, dn3, dn4:Contents of the direct area (1 to 4 hexadecimal digits)0 to FFFFHIt is possible to omit initial zeroes so that there are less than 4digits.Individual words of data are delimited by commas.s1, s2:Checksum (2 hexadecimal digits)ResponseFormatNoneFunctionNotifies to the host of the change in PT memory.396SectionCommands/Responses4-3-20 PT Operation Mode Switching Command4-3(Sent from Host to PT)CommandFormat[ESC]MCm00(s1)(s2)[CR]1B4D43* *3030* ** *0Dm:Checksum present/absent (1 BCD digit)0: Absent1: Presentc1, c2:Operation mode of PT to be switched to (2 BCD digits)Fixed as 00 (transmit mode)s1, s2:Checksum (2 hexadecimal digits)When m is 0, omit this setting.ResponseOnly if Yes is set for the Response memory switch, the response indicated belowis returned on normal completion.Format[ESC]MC00s1s2[CR]1B4D43303030420DData Parts1, s2:Checksum (2 hexadecimal digits)This is always added (fixed as 0BH).Normally, data part is 00, however, it is 10 (31H, 30H) when serial port B is used.(see below)Function• Changes the operation mode of PT from RUN mode to transmit mode by thecommand from the host.• This command can change the PT mode from RUN mode to transmit modeforcibly even if the setting of Display System Menu was set to Disabled by system installer mode.• After the mode was switched to transmit mode by this command, screen datatransmission is possible even if the setting of Screen Memory Protect was setto Disabled by system installer mode.• Use this command when the PT is communicating to the host at serial port A.
Ifyou use this command when the PT is communicating to the host at serial portB, 10 (checksum error) is returned to data part and it is not possible to switch tothe transmit mode.• When the PT mode is switched to transmit mode by this command, direct areachanging notify command (notification of PT operation status OFF in PT notifyarea) will be issued.• If the PT received this command while the momentary touch switch is beingpressed, PT issues PT memory changing notify command (notification of corresponding word OFF(0)) first and then changes the operation mode to transmit mode.397SectionCommands/Responses4-3-21 Re-send Request Command4-3(Sent from Host to PT)CommandFormatm:[ESC]RRm(s1)(s2)[CR]1B5252* ** ** *0DChecksum present/absent (1 BCD digit)0: Absent1: PresentChecksum (2 hexadecimal digits)When m is 0, omit this setting.s1, s2:ResponseFormatFunctionNone• The input notify command last sent from the PT is re-sent.• Requests re-issue of the last input notify command (touch switch input notification, numeral input notification, character string input notification, direct areachanging notification and PT memory changing notification) issued by the PT.The PT re-sends the last issued input notify command.4-3-22 Error Response(Sent from PT to Host)Responsec1, c2:01:02:03:04:05:06:10:11:398[ESC]ERc11B4552* *c2s1s2[CR]* ** ** *0DError code (2 BCD digits)Invalid commandA non-exist command has been used.Command length errorThe command length differs from the stipulated length.Range errorThe word/table entry number is outside the setting range.Checksum present/absent specification errorA value other than those stipulated has been set for the checksum present/absent specification.Format errorA format other than that stipulated has been used, for examplethe word address has been specified with 5 digits or a charactercode outside the permissible range has been used.Re-send request errorA re-send request command has been issued although there isno input notify command to re-send.Checksum errorThe specified sum value and calculated sum value differ.This error code is returned also when the PT operation modeswitching command is issued when the PT is communicating tothe host at serial port B.Communication errorA parity error, overrun error, or framing error has occurred.SectionCommands/Responsess1, s2:Function4-3(This error code is only issued when Comm.
Auto-returnmemory switch is ON. )Checksum (2 hexadecimal digits)If there is an error in a command received by the PT, an error code is notified tothe host. The command in which the error occurred is invalidated.399SectionMemory Link Online Transfer Function4-44-4Memory Link Online Transfer FunctionThe memory link online transfer function is used to write screen data from thehost to the PT. Screen data can be written with the memory link online transferfunction only when the memory link is being used.This section provides an overview of the memory link online transfer function.4-4-1 Online Transfer ProcessesThe following processing can be performed with the memory link online transferfunction.1, 2, 3...1.
Switch the PT from RUN mode to transfer mode from the host.PTHosta) Operating withmemory linkMENUc) Transmit modeSETMON.<TRANSMIT MODE>Quitb) PT operatingmode switch commandExample: [ESC] MC000 [CR]Don’t touch the Touch Panel.2. Write screen data to the PT from the host.PT<TRANSMIT MODE>HostQuitDon’t touch the Touch Panel.Transfer screen data.Reference: Do not touch the touch panel while screen data is being transferred by thememory link online transfer function.
(Do not press the Exit touch switch either.)3. Switch the PT to RUN mode and start operation.PTb) Start operation withthe new screen data.HostMAINTENANCETank ATank BTank CTank DBulb ABulb BBulb Ca) Data transfer completedcommand400SectionMemory Link Online Transfer Function4-44-4-2 Required ConditionsThe following conditions are required in order to use the memory link onlinetransfer function.ItemConditionSupport ToolPT modelPC type(Supports direct access)Screen data file typeNT-ZJCAT1-EV4 NT-series Support Tool forWindows (Version 4)NT21NT31, NT31C, NT631, or NT631C (V1 or later)Memlink (memory link)mmi (Memory Map Image) formatUsable memory areaPT memoryWord addresses0000 to 9999Reference: The mmi format is a screen data file format with the .mmi filename extension.This format reduces the size of files to less than 1.4 MB to allow the files to bestored on floppy disks.
The mmi format can be selected when screen data is being stored with the NT-series Support Tool for Windows (Version 4). The file format is the standard file format.The mmi format deletes the following information in order to reduce file size:• Grid information in screens created with the Support Tool• Group information for grouped elementsRefer to the NT-series Support Tool for Windows (Version 4) Operation Manualfor more details on the file formats.4-4-3 Example ApplicationsWhen the memory link online transfer function is being used, screen data in thePT can be changed freely from the host.