NT21_Reference Manual (V069-E1-1) (986756), страница 19
Текст из файла (страница 19)
Refer to Appendix DPC Memory Maps on page 441.The clock data that can be specified is listed in the following table.ItemData (BCD)RemarksSeconds00 to 59Minutes00 to 59Hour00 to 23Day of month01 to 31Month01 to 12Year00 to 99Rightmost two digits of yearDay of week00 to 06See following table.24-hour timeDays of the week are expressed as follows:70DaySundayMondayTuesdayWednesdayThursdayFridaySaturdayValue00010203040506Areas for Control/NotificationReference:Section2-2S The NT21’s clock function is not a counter.
This function just displays the mostrecent clock data read from the host.S After the NT21 is turned ON, the default date and time (01/01/00 00:00:00) willbe displayed if the data in the PT is not correct until the clock data is read properly from the host.S The clock function does not strictly check the date and day of the week settings.The data must therefore be set correctly so that there is no discrepancy between the date and the day of a weekS The clock data cannot be set from the NT21’s System Menu or the NT SupportTool.S The clock data is always BCD regardless of the setting of the Storage Type setting made in the PT configuration settings from the Support Tool.Clock Data AreaFunctionsThe PT periodically reads the contents of the Clock Data Area to update theclock data in the PT.The structure of the clock data in the PT is the same as the structure of the wordscontaining the clock data in the CS/CJ-series and C-series PCs.
If these wordsare allocated for the Clock Data Area with the NT21, then the clock data will beautomatically synchronized during operation if the words are allocated.If the structure of the clock data in the host is not the same as the structure in thePT (or the words containing the clock data in the host cannot be allocated), usethe ladder program to update the Clock Data Area periodically, e.g., by copyingthe contents of the PC’s clock data to the Clock Data Area.Reference: Numeral memory table entries 247 to 253 are reserved for the clock function(read-only) and the clock data is automatically stored in them. Refer to 3-10 Display and Setting of Calendar Clock for the methods used to display the date ortime.71SectionMemory Tables2-32-3Memory TablesThe PT has the following three types of memory area that can be written to freelyfrom the host.• Numeral memory table for numeric value dataPage 72• Character string memory table for text dataPage 79• Bit memory table for bit dataPage 83The contents of numeral/character string memory table entries can be displayedfor individual memory table entries at the Support Tool, and set in table editing.Reference: In addition to the memory tables listed above, there is a mathematical table inwhich a calculation formulas can be registered.
For details, refer to 2-18 Mathematical Function (page 279).2-3-1 Numeral Memory TableFunction OutlineNumeral memory table is contained in internal memory of the PT for recordingnumeric value data.Since words can be allocated in the host for numeral table entries, the contentsof host words can be displayed as numeric values at the PT via the numeralmemory table.Numeral memory table entries are assigned numeral memory table entry numbers so that they can be managed and designated individually.PT12349999PCDisplayDisplayNumeral memory table entry 1Allocated wordNumeral memory table entry 5Restrictions• The number of numeral memory table entries can be set as one of the followingin the System settings in the PT configuration settings made at the SupportTool.• 512 (numeral memory table entry numbers 0 to 511)• 1000 (numeral memory table entry numbers 0 to 999)• 2000 (numeral memory table entry numbers 0 to 1999)Since the numeral memory table shares memory with the screen data, setting alarge number of numeral memory table entries reduces the memory area available for screen data.S The data quantity of one numeral memory table entry can be set to either of thefollowing by setting at the Support Tool.1 word (2 bytes)/2 words (4 bytes)• Since numeral memory table entry numbers 1000 and higher are not backedup by the battery, they return to the initial values set with the Support Tool whenthe power to the PT is turned ON, when the PT is reset, and on transition fromthe System Menu to the RUN mode, regardless of the setting made for the resume function.• Numeral memory table entry numbers 247 to 255 are used with the clock function of the PT.
These table entries cannot be used for other applications. Fordetails on the clock function, refer to 2-16-6 Clock Function (page 251).72SectionMemory TablesCommon Attributes2-3Numeral memory table entries have the following properties.Possible SettingsPropertyMeaning@ For BCD format:–9999999 to 99999999@ For binary format:–2147483648 (80000000H) to 2147483647 (7FFFFFFH)ValueThe initial values that can be set as the contents of memory table entries by the Support ToolThe format is determined by the system memory of the PT and the Numeral Storage Type setting.For details, refer to Storage type and stored data (page 74).Check 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 previously existing numeral memory tablecontents are written to the host words.
When no check mark is set, thedata at the host is read and set in the numeral memory table entries.InitialSystem/Binary/BCDMethod for storing numeric data in numeral memory table entries.This setting is valid only when a word is allocate for the numeral tableentry in the host. Numeral memory table entries that are not allocatedwords in the host always use binary format. If a setting is made for System.
it complied with the Numeral Storage Type setting of PT configuration.For details, refer to Storage type and stored data (page 74).StorageType0/1/2The number of words allocated in the host for the numeral memory tableentry.For details, refer to Allocated words (page 73).WordsAny word address at the hostWord at the host allocated for the numeral memory table entry.When two words are allocated for the numeral memory table entry, designate the first (lower) word.For details, refer to Allocated words (page 73).PCAddressUp to 16 characters of textI/OCommentComment that describes the contents of a numeral memory table entryAllocated WordsEither one or two words can be allocated at the host for each numeral memoryentry. Words can be allocated in the following host (PC) areas.SymbolC-series PCsAllocationCV-series PCsAllocationCS/CJ-series PCsAllocationNoneIR AreaOKCIO AreaOKCIO AreaOKHHR AreaOK------HR AreaNot forHost LinkAAR AreaOKAuxiliary AreaNoAR AreaOKLLR AreaOK------LR Area*1Not forHost LinkTTC Area,Timer PVs1-word entries onlyTC Area,Timer PVs1-word entries only1-word entries onlyTimer Area,Timer PVs73SectionMemory TablesSymbolC-series PCsAllocation---CV-series PCsAllocation---AllocationTC Area,Timer Completion FlagsTU---CTC Area,Counter PVsCU------------TC Area,Counter Completion FlagsW------------WR AreaTK------------Task FlagsNoDDM AreaOKDM AreaOKDM AreaOKEEM Area *2,current bankOKEM Area,current bankE0_ toEC_---------1-word entries only---CS/CJ-series PCs2-3Counter Area,Counter PVsNot forHost LinkNot forHost Link---TC Area,Counter PVsNo1-word entries onlyNoNot 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.