NT21_Reference Manual (V069-E1-1) (986756), страница 21
Текст из файла (страница 21)
Specify numeral memory table entries when displaying numeral displays as guide characters of lamps or touchswitches as well.Input FunctionsWhen one or two words are allocated in the host for numeral memory table entries, the contents of the words is read and stored.However, reading is only executed for those numeral memory table entries thatare being used for the currently displayed screen (when copying a memory tableentry, the contents of the allocated word(s) of the copy source memory tableentry is read) or specified as operands in the mathematical function.Output FunctionsWhen one or two words are allocated in the host for a numeral memory tableentry, the contents of the numeral memory table is written to the word(s).However, writing is only executed in the following cases.• When the contents of the numeral memory table entry has changed as a resultof operations at the PT, such as memory table entry copying by touch switchoperation, or use of the numeral setting function• When the Initial setting at the Support Tool is checked when the power to thePT is turned ON, the PT is reset, or on transition from the System Menu to theRUN mode (the contents of all numeral memory table entries that are allocatedwords in the host and whose initial setting is checked are written)• When using words allocated for the numeral memory table entry in the host asdestinations for the calculation results of the mathematical functionProcessing FunctionsThe contents of word(s) allocated in the host are interpreted and stored in accordance with the attributes that have been set (refer to Common Attributes onpage 73).
Data is converted according to the preset attributes even when thecontents of numeral memory table entries changed with PT operations are beingwritten to words in the host.Relationship with Other Elements• When numeral display is used, the contents of numeral memory table entriescan be displayed in real time as numeric values (page 140).78SectionMemory Tables2-3• When a bar graph is used, the contents of a numeral memory table entry canbe displayed in real time in bar graph form (page 154).• When an analogue meter is used, the contents of a numeral memory tableentry can be displayed in real time in the form of quarter, semi-circle or circleshaped graph.• When a broken line graph is used, the contents of multiple, consecutive numeral memory table entries can be displayed in real time in the form of a broken line graph (page 164).• When a trend graph is used, changes over time in the contents of a numeralmemory table entry can be displayed in the form of a broken line graph (page171).• When a lamp’s guide character is made into a numeral display, the contents ofa numeral memory table entry can be displayed numerically in real-time (page112).• When a touch switch’s guide character is made into a numeral display, the contents of a numeral memory table entry can be displayed numerically in realtime (page 119).• When a numeral setting is used, numeric values can be input into the numeralmemory table entry from the screen of the PT (page 192).• When a thumbwheel switch is used, numerical values can be input into the numeral memory table entry from the screen of the PT (page 200).• When the touch switch copy setting function is used, the contents of a numeralmemory table entry can be copied, and constants can be input to the numeralmemory table entry (page 135).• By operation of the PT status control area, data can be copied betweenmemory table entries from the host (page 52).• If the contents of numeral memory table entries are changed by operation atthe PT, the change is notified to the PT status notify area (page 61).• A numeral memory table entry can be specified as the location of operandsused by the mathematical function or the destination of calculation results(page 279).2-3-2 Character String Memory TableCharacter string memory table entries are internal memories of the PT for recording character string data.Since words can be allocated for character string memory table entries in thehost, the contents of words at the host can be displayed as character strings atthe PT via the character string memory table.Character string memory table entries are assigned character string memorytable entry numbers so that they can be managed and designated individually.Function OutlinePTabcdeABCDERestrictionsPCDisplayDisplayReadCharacter string memory table entry 8Allocated wordCharacter string memory table entry 12• The number of character string memory table entries can be set as one of thefollowing at the Support Tool.• 256 (character string memory table entry numbers 0 to 255)• 1000 (character string memory table entry numbers 0 to 999)79SectionMemory Tables2-3• 2000 (character string memory table entry numbers 0 to 1999)Since the character string memory table shares memory with the screendata, setting a large number of character string memory table entries reduces the memory area available for screen data.• The data quantity of one character string memory table entry can be set as follows by setting at the Support Tool (a setting of 0 indicates no allocation):0 to 40 characters (= 0 to 40 bytes, which is 0 to 20 words)• Character string memory table entry numbers 500 and higher always remainat the initial value set with the Support Tool.
These values cannot be changedlater and can only be read. Words cannot be allocated for these table entries inthe host either.• The characters that can be stored in character string memory table entries arealphanumerics, symbols, and marks (codes FF20 to FFFFH).Reference:S If 00H (NULL code) is encountered in a character string, the subsequent datais ignored.S If codes outside the ranges indicated above are written to the allocated wordsat the host, the character strings may not be displayed correctly.S When the PT is set to NT20S and NT30/NT620 compatible mode, image andlibrary codes can be included in the character strings. Refer to Appendix C fordetails on the NT20S and NT30/620 compatible modes.Common AttributesCharacter string memory table entries have the following properties.Possible SettingsPropertyValueMeaningAlphanumerics and symbols, MarksCharacter string in the initial status after the contents of the characterstring memory table have been initialized.InitialCheck mark (initialize)/No check mark (do not initialize)This setting determines whether or not the allocated words at the hostare initialized when the power to the PT is turned ON, when the PT isreset, and on transition from the System Menu to the RUN mode.Initialization here means initialization of the allocated words at the host:when a check mark is set, the previous character string memory tablecontents is written to the host words.
When no check mark is set, thedata at the host is read and set in the character string memory tableentries.PCAddressAny word address at the hostWords1 to 20Host word(s) allocated for the character string memory table entry.Designate the first (lower) word.For details, refer to Allocated words (page 80).The number of words allocated in the host for the character stringmemory table entry.For details, refer to Allocated words (page 80).I/OCommentUp to 16 characters of textComment that describes the contents of a character string memory tableentryAllocated WordsOne to twenty words can be allocated at the host to each character string tableentry.
Words can be allocated in the following host (PC) areas.80SectionMemory TablesSymbolC-series PCsAllocationCV-series PCsAllocationCS/CJ-series PCs2-3AllocationNoneIR AreaOKCIO AreaOKCIO AreaOKHHR AreaOK------HR AreaNot forHost LinkAAR AreaOKAuxiliary AreaNoAR AreaOKLLR AreaOK------LR Area*1Not forHost LinkTTC Area,Timer PVsNoTimer Area,Timer PVsNoTC Area,Timer PVsNoTU------------TC Area,Timer Completion FlagsNoCTC Area,Counter PVsNoCounter Area,Counter PVsNoTC Area,Counter PVsNoCU------------TC Area,Counter Completion FlagsNoW------------WR AreaTK------------Task FlagsNoDDM AreaOKDM AreaOKDM AreaOKEEM Area *2,current bankOKEM Area,current bankE0_ toEC_---------Not forHost Link---Not forHost LinkEM Area,current bankNot forHost LinkEM Area,EM banks 0 to CNot forHost Link*1: LR 00000 to LR 00199 are converted to CIO 01000 to CIO 01199.*2: The EM Area is supported only by the C200HX/HG/HE(-Z)E PCs.The Auxiliary Area of the CVM1 and CV-series PCs is allocated to system functions, and it cannot be used for purposes other than system use.The range of each memory area differs according to the PC.
Refer to Appendix DPC Memory Maps on page 441.The relationships among the allocated words, the number of allocated words,and the contents of character string memory table entries are indicated in thefigure below.Example: Number of allocated words = 4 wordsA = 41H, B = 42HFirst word41 42C = 43H, D = 44HFirst word + 1 43 43Y = FF01HFirst word + 2 F F 01E = 45H, F = 46HFirst word + 3 465 4ABCDYEFResume Function and Initial ValuesWhen the resume function is not used, the preset initial values are written in thecharacter string memory table entries when the power to the PT is turned ON,the PT is reset, or the PT is switched to RUN mode from the System Menu. (SeeInitialize below.)Use the resume function to prevent initialization and retain the last values thatwere in place before operation stopped.Resume settingCharacter string memory table contentsYesThe previous character string memory table values are used.NoThe character string memory table entry’s initial values areused.81SectionMemory Tables2-3The System Menu’s initialize operation can be used to write the initial values tothe memory table entries regardless of the resume function setting.