NT21_Reference Manual (V069-E1-1) (986756), страница 79
Текст из файла (страница 79)
Numeral storage type can be set atthe Support Tool. (It is possible to set it by a system memory at a PT collectively.)e.g.) Writing 1234 to the numeral memory table entry 0 (allocated word: 1)Written dataNumeral Storage TypeNumeral Memory Table entry 0BCD04D2Binary12341234S For details of function and setting of numeral storage type, refer to the NT-series Support Tool for Windows (Version 4) Operation Manual (V061-E1-j).4-3-9 Character String Memory Table Write Command(Sent from Host to PT)CommandFormat[ESC]WSmt1t2t3t41B5753* ** ** ** ** *d11d12dn1dn2(s1)(s2)[CR]* ** ** ** ** ** *0Dm:Checksum present/absent (1 BCD digit)0: Absent1: PresentCharacter string memory number written to (4 BCD digits)t1 to t4:0000 to 0499d11, d12, ..., dn1, dn2:Contents of the written character string memory table entries (1to 40 characters)385SectionCommands/Responses4-300 to FFHIn the case of character string memory table entries allocatedwords in the host, specify the registered number of words multiplied by 2, and in the case of character string memory table entries not allocated words in the host, specify the data for 40characters.Checksum (2 hexadecimal digits)When m is 0, omit this setting.s1, s2:Reference: The maximum number that can be specified for character string memory tableentries depends on the setting for numbers of character string table entries(256/1000/2000) made at the Support Tool.
However, it is not possible to write tocharacter string memory table entries of numbers higher than No.500 since theyare used only as a reading area.ResponseOnly if Yes is set for the Response memory switch, the response indicated belowis returned on normal completion.Format[ESC]WS00s1s2[CR]1B5753303032350Ds1, s2:FunctionChecksum (2 hexadecimal digits)This is always added (fixed as 25H).Writes specified data to the specified character string memory table entries.4-3-10 Bit Memory Table Write Command(Sent from Host to PT)CommandFormat[ESC]WBmt11B5742* ** *Data of 16 tablesm:t2t3t4* * * ** *Data of 16 tables(l1)* *(l2)* *d11d14,dn1dn4(s1)(s2)[CR]* ** *2C* ** ** ** *0DChecksum present/absent (1 BCD digit)0: Absent1: Present8: Absent (effective only when 1 table entry written)9: Present (effective only when 1 table entry written)First bit memory table entry number written to (4 BCD digits)t1 to t4:0000 to 0999Number of written table entries (2 BCD digits)l1, l2:00:100 table entries01 to 99:1 to 99 table entriesWhen m is 8 or 9, omit this setting.d11 to d14, ..., dn1 to dn4:Contents of the written bit memory table entries (4 hexadecimaldigits, × n)0000 to FFFFHThe contents of bit memory table entries are represented as 1bit data (OFF=0, ON=1) and 16 entries of bit memory table are386SectionCommands/Responses4-3specified as 4 hexadecimal digits value.
(Table entries withsmaller number is the rightmost bit.)If written data is less than 16, the specification is started from bit0. (Remaining leftmost bit will be ignored.)The bit memory table data (4 hexadecimal digits) is delimited bycommas by each 16 table entries.Checksum (2 hexadecimal digits)When m is 0 or 8, omit this setting.s1, s2:Reference: The maximum number that can be specified for bit memory table entries depends on the setting for numbers of bit memory table entries (256/1000) made atthe Support Tool.ResponseOnly if Yes is set for the Response memory switch, the response indicated belowis returned on normal completion.Format[ESC]WB00s1s2[CR]1B5742303031340Ds1, s2:FunctionChecksum (2 hexadecimal digits)This is always added (fixed as 14H)• Writes the data of the specified number of bit memory table entries, startingfrom the specified bit memory table entry.• A maximum of 100 table entries can be written at one time.• If a number of table entries that is not a multiple of 16 is specified, 0 is insertedin remaining bits (leftmost bits).• The number (n) of 4 hexadecimal digits value to be specified is as follows:n=(number of written bit memory table entries–1)O16)1(O indicates the subtraction of the integer.)ExampleWriting bit memory table entries 51 to 7070 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51ON ON ON ON ON OFF ON ON OFF ON ON OFFOFF ON OFFOFFOFFOFF ON ON Contents to be written to bitmemory101010110FB42110B6361106434333,2C010004030030013030F461Changing to Bit dataChanging to Hexadecimal(Remaining left most bit 0)Data to be specifiedASCII code387SectionCommands/Responses4-3-11 PT Memory Batch Write (FILL) Command4-3(Sent from Host to PT)CommandFormat[ESC]FMmb1b2b3b4e1e21B464D* ** ** ** ** ** ** *e3e4d1d4(s1)(s2)[CR]* ** ** ** *m:b1 to b4:e1 to e4:d1 to d4:s1, s2:* ** *0DChecksum present/absent (1 BCD digit)0: Absent1: PresentFirst written word address (4 BCD digits)0000 to 9999Final written word address (4 BCD digits)0000 to 9999Data to be written (1 to 4 hexadecimal digits)0 to FFFFHIt is possible to omit initial zeroes so that there are less than 4digits.Checksum (2 hexadecimal digits)If m is 0, omit this setting.ResponseOnly if Yes is set for the Response memory switch, the response indicated belowis returned on normal completion.Formats1, s2:Function[ESC]FM00s1s2[CR]1B464D303030450DChecksum (2 hexadecimal digits)This is always added (fixed as 0EH).Writes the specified data to all the words within the range specified by the firstwritten word address and final written word address.4-3-12 Numeral Memory Table Clear Command(Sent from Host to PT)CommandFormat[ESC]CNm(b1)(b2)(b3)(b4)1B434E* ** ** ** ** *(e1)(e2)(e3)(e4)(s1)(s2)[CR]* ** *0D* *m:b1 to b4:388* ** ** *Checksum present/absent (1 BCD digits)0: Absent1: PresentFirst cleared numeral memory table entry number (4 BCD digits)0000 to 1999SectionCommands/Responsese1 to e4:s1, s2:4-3Final cleared numeral memory table entry number (4 BCD digits)0000 to 1999Checksum (2 hexadecimal digits)If m is 0, omit this setting.Reference: The maximum number that can be specified for numeral memory table entriesdepends on the setting for numbers of numeral memory table entries(512/1000/2000) made at the Support Tool.ResponseOnly if Yes is set for the Response memory switch, the response indicated belowis returned on normal completion.Formats1, s2:Function[ESC]CN00s1s2[CR]1B434E303030430DChecksum (2 hexadecimal digits)This is always added (fixed as 0).• Writes 0 to all the numeral memory table entries within the specified range.• If settings are omitted for both the first cleared numeral memory table entrynumber and the final cleared numeral memory table entry number, all the numeral memory table entries are cleared.
It is not possible to omit just one ofthese settings.• When writing is executed to numeral memory table entries from No.247 toNo.253 (areas for clock data display/reading use only), operation will be finished normally without writing values.4-3-13 Character String Memory Table Clear Command(Sent from Host to PT)CommandFormatm:b1 to b4:e1 to e4:s1, s2:[ESC]CSm(b1)(b2)(b3)(b4)1B4353* ** ** ** ** *(e1)(e2)(e3)(e4)(s1)(s2)[CR]* ** ** ** ** ** *0DChecksum present/absent (1 BCD digit)0: Absent1: PresentFirst cleared character string memory table entry number(4 BCD digits)0000 to 0499Final cleared character string memory table entry number(4 BCD digits)0000 to 0499Checksum (2 hexadecimal digits)When m is 0, omit this setting.Reference: The maximum number that can be specified for character string memory tableentries depends on the setting for numbers of character string table entries(256/1000/2000) made at the Support Tool.
However, it is not possible to clearcharacter string memory table entries higher than entry 500.389SectionCommands/Responses4-3ResponseOnly if Yes is set for the Response memory switch, the response indicated belowis returned on normal completion.Formats1, s2:Function[ESC]CS00s1s2[CR]1B4353303031310DChecksum (2 hexadecimal digits)This is always added (fixed as 11H).• Writes 40 characters of space code (20H) to all the character string memorytable entries within the specified range.• If settings are omitted for both the first cleared character string memory tableentry number and the final cleared character string memory table entry number, all the character string memory table entries are cleared.
It is not possibleto omit just one of these settings.4-3-14 Bit Memory Table Clear Command(Sent from Host to PT)CommandFormat[ESC]CBm(b1)(b2)(b3)(b4)1B4342* ** ** ** ** *(e1)(e2)(e3)(e4)(s1)(s2) [CR]* ** ** ** ** ** *0Dm:Checksum present/absent (1 BCD digit)0: Absent1: Presentb1 to b4:First cleared bit memory table entry number (4 BCD digits)0000 to 0999e1 to e4:Final cleared bit memory table entry number (4 BCD digits)0000 to 0999Checksum (2 hexadecimal digits)When m is 0, omit this setting.s1, s2:Reference: The maximum number that can be specified for bit memory table entries depends on the setting for numbers of bit memory table entries (256/1000) made atthe Support Tool.ResponseOnly if Yes is set for the Response memory switch, the response indicated belowis returned on normal completion.Formats1, s2:Function390[ESC]CB00s1s2[CR]1B4342303030300DChecksum (2 hexadecimal digits)This is always added (fixed as 00H).Writes OFF (0) to all the bit memory table entries within the specified range.SectionCommands/Responses4-3-15 Touch Switch Input Notify Command4-3(Sent from PT to Host)CommandFormat[ESC]STc1c2c3c4d1d21B5354* ** ** ** ** ** *d3d4a1a2a3a4s1s2[CR]* ** ** ** ** ** ** ** *0Dc1 to c4:Changed word address (4 BCD digits)0000 to 9999This is the number of the word containing the allocated bit of thetouch switch at which there has been a change.Contents of the word after the change (4 hexadecimal digits)0000 to FFFFHChanged bit information (4 hexadecimal digits)0000 to FFFFHThe changed bit in the contents of the word after the change isset to 1.Checksum (2 hexadecimal digits)This is always added.d1 to d4:a1 to a4:s1, s2:ResponseFormatFunctionNone• When the status of a touch switch changes because it has been touched orreleased, notifies the change of status to the host.• Normally, one command notifies the change in status of one allocated bit only,but when multiple bits in the same word change simultaneously, those changes are all notified together with one command.Reference: When the screen is switched after pressing a momentary key, this commandgoes OFF.
The change is also notified to the host.ExampleCommand[ESC]ST0102301B53543031303233301300010D[CR]31333030303130440DChanged word address: Wd 0102Contents of the word after the change (hexadecimal):3013H (binary notation: 0011 0000 0001 0011)Changed bit information (hexadecimal):0001H(binary notation: 0000 0000 0000 0001)Checksum (hexadecimal): 0DHFrom the changed word address and changed bit information, it is ascertainedthat the change relates to the touch switch allocated bit 00 of word 0102, andbecause 1 is set at the relevant position in the contents of the word after thechange, it is ascertained that the touch switch has been pressed (if the change isto OFF, since the operation differs according to the type of touch switch, it cannotbe determined from a change in the bit status alone whether the touch switchhas been touched or released.)391SectionCommands/Responses4-3-16 Numerical Input Notify Command4-3(Sent from PT to Host)CommandFormat[ESC]SNt1t2t3t4d1d21B534E* ** ** ** ** ** *d3d4d5d6d7d8s1s2[CR]* ** ** ** ** ** ** ** *0Dt1 to t4:Input numeral memory table entry number (4 BCD digits)0000 to 1999This is the number of numeral memory table entry for whichthere has been numerical input.d1 to d8:Input numeric data (8 hexadecimal digits)00000000 to FFFFFFFFHs1, s2:Checksum (2 hexadecimal digits)This is always added.ResponseFormatNoneFunction• In accordance with operations at the PT, such as numeral setting and copyingof memory table entries, notifies the host that a numeric value has been inputto the numeral memory table entry.• Since it is not possible to write to numeral memory table entries from No.247 toNo253 (areas for clock data display/reading use only), notification of thesetable entries is not executed.ExampleCommand[ESC]SNt1t2t3t4d1d21B534E* ** ** ** ** ** *d3d4d5d6d7d8s1s2[CR]* ** ** ** ** ** ** ** *0DInput numeral memory table entry number:No.150Input numeric value data (hexadecimal):30000HChecksum (hexadecimal):05HHere, it is ascertained that 30000 has been input to numeral memory table entry150 (whether this is 30000 in hexadecimal or 30000 in BCD is determined by thenumeral storage type set for the numeral memory table entry).Input numeralNumeral memory table entry 150BCD0003000000196608Binary0003000039200030000SectionCommands/Responses4-3-17 Character String Input Notify Command4-3(Sent from PT to Host)CommandFormat[ESC]SSt1t2t3t4d111B5353* ** ** ** ** *t1 to t4:dn1dn2s1s2[CR]* ** ** ** *0Dd12* *Input character string memory table entry number (4 BCD digits)0000 to 0499This is the number of the character string memory table entryfor which there has been character string input.d11, d12, ..., dn1, dn2:Input character string data (1 to 40 characters)00 to FFHIn the case of character string memory table entries allocatedwords in the host, this is the registered number of words multiplied by 2, and the case of character string memory table entries not allocated words in the host, it is data for 40 characters.s1, s2:Checksum (2 hexadecimal digits)This is always added.ResponseFormatNoneFunctionIn accordance with operations at the PT, such as character string settings andcopying of character string memory table entries, notifies the host that a character string has been input to the character string memory table entries.ExampleCommand[ESC]1BSS0210OM5353303231304F4DF46[CR]0DRON0524F4E30Input character string memory table entry number:No.210Input character string data (hexadecimal):OMRONChecksum (hexadecimal):0FHHere, it is ascertained that OMRON has been input to character string memorytable entry 210.393SectionCommands/Responses4-3-18 Direct Area Changing Notify Command4-3(Sent from PT to Host)CommandFormat[ESC]PMc1c2c3c4l1l2d11d121B504D* ** *d13d14,* *dn1* *dn2* *dn3* *dn4* *s1* *s2[CR]* ** *2C* ** ** ** ** ** *0Dc1 to c4:Word address of the changed direct area (4 BCD digits)0000 to 9999Area type of the changed direct areal1, l2:Word addressPT control areaFirst allocated wordPT notify areaFirst allocated word)1 wordWindow control areaFirst allocated wordNo.