NT21_Reference Manual (V069-E1-1) (986756), страница 67
Текст из файла (страница 67)
The display on the PT changes to the next item in the sequence NT631C →NT631 → NT31C → NT31 each time bit 00100 comes ON.2. The display on the PT changes to the next item in the sequence NT31 →NT31C → NT631 → NT631C each time bit 00101 comes ON.In this example, the contents of numeral memory table entry 51, which is referenced in indirect specification, is not checked. If the program is actually tested,the contents of numeral memory table entry 51 must not be outside the range of0100 to 0103.321SectionChanging Numeral and Character String Display3-5Changing Numerals/Character Strings by Copying the Contents by Operation at thePT Status Control AreaIf this method is used, contents can be copied between any required memorytable entries at any time in response to a command from the host.
Note that thismethod is possible only for the following combinations.• Numeral memory table entry → Numeral memory table entry• Character string memory table entry → Character string memory table entryPTPCMemory table entriesAPT status control areaACopy sourceScreen switch settingCopy destination(for display)Copy memory← Copy source memory table numberAtable setting← Copy destination memory table entry numberPT status control setting← Copy execution commandReserved for system useReference:S If the Words settings differ between the memory table entries (copy sourceand copy destination table entries), numerals or character strings are copiedcorrectly since 2 words are secured for a numeral memory table entry and 20words for a character string memory table entry in the PT.
If the memory tableentry is allocated a word in the host, however, copying may not be executedcorrectly if the Words settings differ between the memory table entries (copysource and copy destination table entries).S When the PT is set to NT20S or NT30/620 compatible mode, copying betweenmemory table entries is performed differently. Refer to Appendix C for detailson the NT20S and NT30/620 compatible modes.SettingWords must be allocated for the PT status control area in the host.
No specialsettings are required for copying the data between memory table entries.OperationThe following areas are provided in the PT status control area to be used for copying the data between memory table entries.• 2nd word from the beginning of the area (word n + 1)Copy source memory table entry number• 3rd word from the beginning of the area (word n + 2)Copy destination memory table entry number• 4th word from the beginning of the area (word n + 3)Memory table entry type (bit 2) and PT status control bit that instructs theexecution of copying (bit 3)(n: Beginning word address of the PT status control area)Word 15 14 13 12 11 10 9nn+1n+2876543Screen No.
(4-digit BCD or hexadecimal)Copy source memory table entry number(4-digit BCD or hexadecimal)Copy destination memory table entry number.(4-digit BCD or hexadecimal)n+3PT status control bitsn+4Reserved for system use210BitScreen switch settingCopy memorytable entrysettingPT status controlThe configuration and functions of these words are differentwhen the PT is in NT20S or NT30/620 compatible mode.322SectionChanging Numeral and Character String Display3-5PT Status Control (word n + 3)1514131211109876543210Bit001 (ON)0 (OFF)15Screen displayControlled ItemPerformedNot performed14Processing priority registration (for NT link (1:N))RegisteredCanceled13Continuous buzzerSoundedStopped12Intermittent buzzer (short)SoundedStopped11Display history initializationPerformedNot performed10Not used9Intermittent buzzer (long)8Backlight modeLitFlashing7Screen printingPerformedNot performed6PT window openingDisabledEnabled5Numeral/character string inputDisabledEnabled4PT screen switchingDisabledEnabled3Memory table copy execution2Memory table copy type1Alarm history initialization0Not usedAlways 0StoppedSoundedPerformedNot performedNumeralCharacter stringNot performedPerformedAlways 0Bits 2 and 3 are not used when the PT is in NT20S orNT30/620 compatible mode.Bit 7 is not supported by the NT21.Operate the PT status control area in the manner shown below to copy data between memory table entries.1, 2, 3...1.
Write the memory table entry numbers in the PT status control area as indicated below in either 4-digit BCD or 4-digit hexadecimal. Which of the BCDand hexadecimal notations is used is determined by the setting for PT Configuration – Storage Type made at the Support Tool.• 2nd word from the beginning (word n + 1)0000 to 1999: Copy source memory table entry number (0 to 1999)• 3rd word from the beginning (word n + 2)0000 to 1999: Copy destination memory table entry number (0 to 1999)Reference: The range of numeral/character string memory table entry numbers that can actually be used depends on the number of numeral memory table entries and thecharacter string table entries set in PT Configuration – System setting at the Support Tool.2.
Set bit 2 of the 4th word (word n + 3) from the beginning of the PT statuscontrol area as indicated below to match the type of memory table entry forwhich copying is to be executed.Memory table entry type: Bit 2• Character string memory table entry:0 (OFF)• Numeral memory table entry:1 (ON)3. Set 1 (ON) for bit 3 of the 4th word (word n + 3) from the beginning of the PTstatus control area.Data copy is executed between the specified type and specified numbers ofmemory table entries.
If the copy destination table entry is allocated a wordin the host, the contents at the word in the host are also changed. Then, theoccurrence of a change in the contents of the memory table entry is notifiedto the PT status notify area.323SectionChanging Numeral and Character String Display3-54. After the execution of memory table copying, return the setting for bit 3 of the4th word (word n + 3) from the beginning of the PT status control area to 0(OFF).Example of UseSetting at the Support ToolSet the word and the contents with the Support Tool as indicated below.• Allocated word in the PT status control area:00100 (word 100 in the CIO area)• Contents to be registered for the screen:Character string memory table entry 4LINE 1NORMALCharacter string memory table entry 4Contents of setting in character string memory table entries324No.ContentsNumber of digits4NORMAL4 digits10FAULT4 digits11NORMAL4 digitsSectionChanging Numeral and Character String Display3-5PC ProgramMake a PC ladder program as shown below.09000Error flag(1)@MOV(21)#0004102Copy destination memory table entry numberCopy destination word@MOV(21)#0010101Copy source memory table entry numberCopy source word@ORW(35)#0008103103Copy type, memory table copy execution bitWord of PT status control bitsTIM #0010001 (1.0S)TIM001@ANDW(34)#FFF7103103Memory table copy execution bit set from 1 to 009000Error flag(2)@MOV(21)#0004102Copy type, copy destination memory table entry numberCopy destination word@MOV(21)#0011101Copy source memory table entry numberCopy source word@ORW(35)#0008103103Copy type, memory table copy execution bitWord of PT status control bitsTIM #0010002 (1.0S)TIM002@ANDW(34)#FFF7103103Memory table copy execution bit set from 1 to 0Program Operation1, 2, 3...1.
If an error occurs (bit 09000 goes ON), the display on the PT changes toFAULT.2. When the error is eliminated (bit 09000 goes OFF), the display on the PTreturns to NORMAL.325SectionChanging Numeral and Character String Display3-5Changing Numerals/Character Strings by Pressing a Touch Switch That Has theCopy Setting FunctionThis method allows an operator to change the contents of a memory table entrysimply by operation at the PT.
It is also possible to copy data to a numeral setting/character string input field by using this method. With the Copy Setting function,data can only be copied in accordance with the predetermined method.The touch switch Copy Setting function executes copying in the following combinations.Copy SourceCopy DestinationNumeral memory table entryNumeral setting input fieldNumeral memory table entryCharacter string memory table entryCharacter string input fieldCharacter string memory table entryNumeral memory table entryNumeral setting input fieldConstantExample: A touch switch with the Copy Setting function is used to reset acounter.Copy key00000DisplayNumeral memory table000001234567890CodeCopy00000Reference: Touch switch operation will be disabled when the touch switch interlock functionis being used and the host’s interlock bit that controls the touch switch’s operationis OFF. (See Disabling Touch Switches with Interlock Bits on page 369 for details.)SettingWhen creating a screen using the Support Tool, set the Copy Setting function fora touch switch.
Specify the copy source and copy destination memory tablenumbers, values and input field, then register them for the screen.The numbers and values that can be specified are:• Memory table entry:0000 to 1999: Numeral/character string memory table entry number (0 to1999)• Constant:–2147483648 to 2147483647• Input field:Specify an input field already registered for the screen.Reference: The range of numeral/character string memory table entry numbers that can actually be used depends on the number of numeral memory table entries and thecharacter string table entries set in PT Configuration – System setting at the Support Tool.OperationPress the touch switch with the Copy Setting function to copy data.Reference: If the contents of the numeral/character string memory table entry have beenchanged by operation at the PT, by using the copy key, etc., this event is notifiedto the PT status notify area in the host (page NO TAG).326SectionDisplay of Graphs3-63-6Display of GraphsThis section describes the method for changing the graph display that shows thecontents of numeral memory table entry, taking the trend graph as an example.For details of changing the contents of numeral memory table entry, refer to 3-5Changing Numeral and Character String Display (page 316).3-6-1 Changing the Trend Graph DisplayFor details of the graph, refer to NO TAG Graphs (page NO TAG).SettingWhen creating the screen using the Support Tool, register a trend graph for thescreen and set a check mark for the data logging function, with the setting fordisplaying special touch switches.
The special touch switches will then be automatically attached to the screen. The position of these special touch switchescan be moved using the element editing function of the Support Tool.OperationPress the touch switch that has the required function.The trend graph display changes according to the function of the pressed touchswitch.