NT21_Reference Manual (V069-E1-1) (986756), страница 48
Текст из файла (страница 48)
Character string of 16characters max.Touch switchesRead/Write touch switchesPage scroll touch switchesSelect whether to enable or disable read and write functions.Select whether to enable or disable touch switches to scroll 1 page inthe following directions: Up, down, left, and right.Line scroll touch switchesSelect whether to enable or disable touch switches to scroll 1 line in thefollowing directions: Up, down, left, and right.InterlockInterlock all recipe touch switchoperationsSelect whether to enable or disable all recipe touch switch operations(interlock function)Checked: ON; Not checked: OFFHost Address SettingPC Bit AddressHost bit allocated to control prohibition of all recipe touch switchoperations (interlock bit, refer to Bit Allocations)I/O CommentComments explaining allocated host bit address.Character string of 16 characters max.Words Allocated to RecordsYou can use recipe data to allocate words on the host for all parameters (1 or 2words × number of parameters) in one record.
You can allocate words for recipedata in the following areas on the host (PC).SymbolC-series PCsAllocationCV-series PCsAllocationCS/CJ-series PCsAllocationNoneIR AreaOKCIO AreaOKCIO AreaOKHHR AreaOK------HR AreaNot withHost LinkAAR AreaOKAuxiliary AreaNoAR AreaOK229Section 2-14RecipesSymbolC-series PCsAllocationOKCV-series PCsCS/CJ-series PCsAllocation---LR Area*1Not withHost LinkOne wordonlyTC Area,Timer PVsOne wordonlyLLR AreaTTC Area,Timer PVsTU---CTC Area,Counter PVsCU------------TC Area,Counter Completion FlagsW------------WR AreaTK------------Task FlagsNoDDM AreaOKDM AreaOKDM AreaOKOne wordonly---Area *2,One wordonly---AllocationTimer Area,Timer PVs--Counter Area,Counter PVsEEMcurrent bankOKEM Area,current bankE0_ toEC_-----------One wordonlyNot withHost Link---TC Area,Timer Completion FlagsTC Area,Counter PVsNoOne wordonlyNoNot withHost LinkEM Area,current bankNot withHost LinkEM Area,EM banks 0 to CNot withHost 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 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.Storage Type (to Words in the Host)Specify each recipe data format individually when storing data from the recipedata memory in the PT to words in the host, or when reading data from words inthe host.When Storage Type Is BCDWriting from PT to HostThe binary data in the recipe data memory is converted to BCD data and writtento the host. If the number is negative, the most significant digit in the word is written as “F.” (Consequently, if the number is negative, the largest possible numberof digits (integer digits + decimal digits) is seven.If the content of the recipe data memory exceeds the range that can be handledby the words allocated in the host, “– (minus sign) + least significant digit” is written to the host (refer to explanation below).Reading from Host to PTThe contents of the words on the host are taken to be BCD data, and are read torecipe data memory.
If the most significant digit is “F,” the contents are taken tobe negative.If the contents of the words on the host are not in correct BCD data format (i.e., ifthe most significant digit is A to E, or if any of the other digits are A to F), the datawill not be read, and the PT recipe data memory will retain its previous value.When Storage Type Is BinaryWriting from PT to HostThe binary data in the recipe data memory is written unconverted to the host.Reading from Host to PTThe contents of the words on the host are taken to be signed binary data and areread to recipe data memory unconverted.230Section 2-14RecipesThe most significant bit is taken to be the sign (i.e., when this bit is ON (1), thenumber is negative).Writing from PT to HostRecipeConversion tosigned BINRecipe table memoryPCWhen storagetype is BCD:BIN BCD(conversion)When storagetype is BIN:BIN BIN(no conversion)Reading from Host to PTRecipeSigned BIN isdisplayed in decimalor hexadecimal.Recipe table memoryPCWhen storagetype is BCD:BCD BIN(conversion)When storagetype is BIN:BIN BIN(no conversion)Input Ranges for Parameter DataWhen entering values to recipe data memory in the PT by an operation on thePT, the range that can be entered for each parameter depends on the storagetype in the host word for each recipe data, the number of words for each parameter, whether the data is in decimal or hexadecimal, and whether or not the data issigned.
The ranges are shown in the following table.PT performs error check and you can not enter values outside the ranges shownin the following table.HostStoragetypeBCDPTWords1 wordDec/HexDecimalHex2 wordsDecimalHexSignInput range permittedNoYes---0 to 9999–999 to 9999FC19 to FFFF (negativenumbers)0 to 270F (positive numbers)NoYes---0 to 99999999–9999999 to 99999999FF676981 to FFFFFFFF(negative numbers)0 to 5F5E0FF (positivenumbers)231Section 2-14RecipesHostStorageWordstypeBinaryyDec/Hex1 wordDecimal2 wordsHexDecimalHexSignNoYes--NoYes---PTInput range permitted0 to 32767 (See note)–32768 to 327670 to FFFF0 to 2147483647 (See note)–2147483648 to 21474836470 to FFFFFFFFNote The numerical range that can be displayed differs from the permitted inputrange.
When the display is in unsigned decimal, negative numbers are displayed as their absolute value, so values that cannot be entered, such as 32768and 2147483648, may be displayed.ExamplesExamples of the way parameter data is stored in the host are given in the following table.→PTValue enteredDec/HexSign123412312341234–123–1234000004D2FF85FFFFFB2EDecimalHex---46602684307964660–32768DecimalNo–2684307961234F123F0001234NoYesYesHex---HostValue storedin recipe datamemoryNumber ofwordsStorage typeContents ofwords onhost000004D2H0000007BH000004D2H000004D2HFF85HFFFFFB2EH000004D2HFF85HFFFFFFB2EH112112112BCD12340123000012341234F123F00012341234F123F000123400001234H0FFFEDCCH00001234H8000H1211Binaryy12340FFFEDCC12348000(See note)F0001234H00001234HF123H211F00012341234FF123(See note)F0001234H2F0001234Display Ranges for Parameter DataWhen displaying the contents of recipe data memory in the PT, the range thatcan be displayed for each parameter depends on the storage type in the hostword for each recipe data, the number of words for each parameter, whether thedata is in decimal or hexadecimal, and whether or not the data is signed.
Theranges are shown in the following table.232Section 2-14RecipesHostStoragetypeBCDPTNumberof wordsDec/Hex1Decimal2HexDecimalSignHexBinaryy1Decimal2HexDecimalHexDisplay rangeNoYes--NoYes---0 to 9999–999 to 99990 to 270F0 to 99999999–9999999 to 999999990 to 5F5E0EFNoYes--NoYes---0 to 32768 (See note)–32768 to 327670 to FFFF0 to 2147483648 (See note)–2147483648 to 21474836470 to FFFFFFFFNote The range of values that may be displayed differs from the range that can beinput. For example, for unsigned data, when the content of recipe data memoryis 8000 Hex (–32768), 32768 will be displayed, and when the content of recipedata memory is 80000000 hex (–2147483648), 2147483648 will be displayed.This is because when a negative value is displayed as unsigned data, only theabsolute value is displayed.
The values 32768 and 2147483648 cannot be entered (as positive values).ExamplesExamples of the way parameter data is displayed on the PT are given in the following table.→HostContents ofword on hostStorage type1234F123F00012341234F123F00012341234F123F0001234BCD1234F123F00012341234F123F00012341234F123FF0001234BinaryyNumber ofwords121212121212Value storedin recipe datamemoryPTDec/HexSign000004D2HFFFFFF85HFFFFFB2EH000004D2HFFFFFF85HFFFFFB2EH000004D2HFFFFFF85HFFFFFB2EHDecimalNoHex---00001234HFFFFF123HF0001234H00001234HFFFFF123HF0001234H00001234HFFFFF123HF0001234HDecimalNoYesYesHex---Valuedisplayed123412312341234–123–12344D2FF85FFFFFB2E466038052684307964660–3805–2684307961234F123F0001234233Section 2-14RecipesNumber of DigitsThe contents of recipe data memory in the PT are all stored as integers.