Главная » Просмотр файлов » NT21_Reference Manual (V069-E1-1)

NT21_Reference Manual (V069-E1-1) (986756), страница 78

Файл №986756 NT21_Reference Manual (V069-E1-1) (Техническая документация) 78 страницаNT21_Reference Manual (V069-E1-1) (986756) страница 782015-07-23СтудИзба
Просмтор этого файла доступен только зарегистрированным пользователям. Но у нас супер быстрая регистрация: достаточно только электронной почты!

Текст из файла (страница 78)

If readingof more than 50 words is specified, the response is split into two parts. In thiscase the first part always contains 50 words of data. Note also that the firstword address read in the second part of the responses will be the word addressof the first word in the response data.ExampleReading the PT Status in the PT Notify Area (Allocated Words: 0010 to 0011)Assume that the following data is stored for PT notify area:Wd 00100123HWd 00118000HCommand[ESC]RM0001002[CR]1B524D303030313030320DNo checksum (2 word read), first word read = 0010Response[ESC]RM0010021B524D303031303032123,800067[CR]3132332C3830303036370D4-3-2 Numeral Memory Table Read Command(Sent from Host to PT)CommandFormatm:t1 to t4:l1, l2:s1, s2:[ESC]RNmt1t2t3t41B524E* *(s2)* *[CR]* *(l2)* *(s1)* *(l1)* ** ** ** *0DChecksum present/absent (1 BCD digit)0: Absent1: Present8: Absent (1 table entry read)9: Present (1 table entry read)First numeral memory table entry read (4 BCD digits)0000 to 1999Number of read table entries (2 BCD digits)00:10001 to 99:1 to 99When m is 8 or 9, omit this setting.Checksum (2 hexadecimal digits)When m is 0 or 8, omit this setting.Reference: The maximum number that can be specified for first numeral memory table entryread depends on the setting for numbers of numeral table entries(512/1000/2000) made at the Support Tool.378SectionCommands/Responses4-3ResponseFormat[ESC]RN1B524EData of 1 wordt1t2t3t4l1l2* ** ** ** ** *Data of 1 word* *d11d1m,dn1dnms1s2[CR]* ** *2C* ** ** ** *0Dt1 to t4:First numeral memory table entry number read (4 BCD digits)0000 to 1999l1, l2:Number of read table entries (2 BCD digits)01 to 20: 1 to 20 table entriesd11 to d1m, ..., dn1 to dnm:Contents of the read numeral memory table entries (1 to 8 hexadecimal digits)0 to FFFFFFFFHSince initial zeroes are omitted, there may be less than 8 digits.The data for individual table entries is delimited by commas.Checksum (2 hexadecimal digits)s1, s2:This is always added.Function• Reads the data from the specified number of numeral memory table entries,starting from the specified numeral memory table entry.• A maximum of 100 table entries can be read at one time.• In the response, the data of maximum of 20 table entries can be returned atone time.

If reading of more than 20 table entries is specified, multiple responses are made, each comprising the data of 20 table entries. Note that thefirst word address read in the second and later responses will be the word address of the first word of the response data.4-3-3 Character String Memory Table Read Command(Sent from Host to PT)CommandFormat[ESC]1BRSmt1t25253(l1)(l2)* *(s1)* *(s2)* *[CR]* ** *0D* *m:t1 to t4:l1, l2:s1, s2:* *t3t4* ** *Checksum present/absent (1 BCD digit)0: Absent1: Present8: Absent (1 table entry read)9: Present (1 table entry read)First character string memory table entry read (4 BCD digits)0000 to 1999Number of read table entries (2 BCD digits)01 to 20:1 to 20When m is 8 or 9, omit this setting.Checksum (2 hexadecimal digits)When m is 0 or 8 omit this setting.379SectionCommands/Responses4-3Reference: The maximum number that can be specified for first character string memorytable entry read depends on the setting for numbers of character string table entries (256/1000/2000) made at the Support Tool.ResponseFormat[ESC]RSt1t2t3t4d11d121B5253* ** ** ** ** ** *dn1dn2s1s2[CR]* ** ** ** *0Dt1 to t4:First character string memory table entry read (4 BCD digits)0000 to 1999d11, d12, ..., dn1, dn2:Contents of the read character string memory table entries(2 digits (hexadecimal) corresponding to 1 to 40 characters)00 to FFH (CP437 or ISO 8859-1)Checksum (2 hexadecimal digits)s1, s2:This is always added.Function• Reads the data of the specified number of character string memory table entries, starting from the specified character string memory table entry.• A maximum of 20 table entries can be read at the same time.• In the response, data is returned in units of one table entry at a time.

If readingof multiple table entries is specified, a number of responses equal to the specified number of table entries is made. Note that the read character stringmemory table entry number is always the number of the data of the response.4-3-4 Bit Memory Table Read Command(Sent from Host to PT)CommandFormatm:t1 to t4:l1, l2:s1, s2:[ESC]RBmt1t2t3t41B5242* *(s2)* *[CR]* *(l2)* *(s1)* *(l1)* ** ** ** *0DChecksum present/absent (1 BCD digit)0: Absent1: Present8: Absent (1 table entry read)9: Present (1 table entry read)First bit memory table entry number read (4 BCD digits)0000 to 0999Number of read table entries (2 BCD digits)00:10001 to 99:1 to 99When m is 8 or 9, omit this setting.Checksum (2 hexadecimal digits)When m is 0 or 8, omit this setting.Reference: The maximum number that can be specified for first bit memory table entry readdepends on the setting for numbers of bit memory table entries (256/1000) madeat the Support Tool.380SectionCommands/Responses4-3ResponseFormat[ESC]RBt1t2t3t4l1l2d11d12d13d14,1B5242* ** ** ** ** ** ** ** ** ** *2Cdn1dn2dn3dn4s1s2[CR]* ** ** ** ** ** *0Dt1 to t4:First bit memory number table entry read (4 BCD digits)0000 to 0999l1, l2:Number of read table entries (2 BCD digits)00:100 table entries01 to 99:1 to 99 table entriesd11, d12, d13, d14, ..., dn1, dn2, dn3, dn4:Contents of the read 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 areread out as 4 hexadecimal digits value.

(Table entries withsmaller number is the rightmost bit.)The bit memory table data is delimited by commas by each 16table entries.s1, s2:Checksum (2 hexadecimal digits)This is always added.Function• Reads 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 read 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 read out is as follows:n=(number of bit memory table entries to be read–1)O16)1(O indicates the subtraction of the integer.)ExampleReading bit memory table entries 23 to 4040 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23OFF ON OFFOFFOFF ON OFF ON ON ON OFF ON OFF ON ON OFF ON ON0000100101011317371117535B42,2C0 1011503003001B0301311Bit memory tableChanging toBit dataChanging to hexadecimal (Remainingleft most bit0)Data to be read outASCII code381SectionCommands/Responses4-3-5 Screen Data Comment Read Command4-3(Sent from Host to PT)CommandFormatms1, s2:[ESC]FRm(s1)(s2)[CR]1B4652* ** ** *0DChecksum present/absent (1 BCD digit)0: Absent1: PresentChecksum (2 hexadecimal digits)ResponseFormat[ESC]FRd1d21B4652* ** *d27d28s1s2[CR]* ** ** ** *0Dd1, d2, ..., d27, d28:Comments of the read screen data file(1 to 28 characters, space code (20H) is inserted in vacantarea)Checksum (2 hexadecimal digits)s1, s2:This is always added.FunctionReads the operation mode of PT.4-3-6 System Status Read Command(Sent from Host to PT)CommandFormatms1, s2:[ESC]PTm(s1)(s2)[CR]1B5054* ** ** *0DChecksum present/absent (1 BCD digit)0: Absent1: PresentChecksum (2 hexadecimal digits)ResponseFormats1, s2:Function382[ESC]PT00s1s2[CR]1B5054303031460DChecksum (2 hexadecimal digits)This is always added (fixed as 1FH).• Reads the operation mode of PT.• The responses above will be returned when PT is in RUN mode.

With themodes other than RUN mode (when RUN indicator is not lit in green), no responses will be returned even if this command is sent. Sending this commandenables to know whether or not PT is running by checking the presence/absence of responses.SectionCommands/Responses4-3-7 PT Memory Write Command4-3(Sent from Host to PT)CommandFormat[ESC]WMmc1c21B574D* ** ** * * ** *Data of 1 wordData of 1 wordc3c4(l1)(l2)* *d11d1m,dn1dnm (s1)* ** *2C* ** ** *(s2)* ** *[CR]0DmChecksum present/absent, write attribute (1 BCD digit)0: Absent, SET attribute1: Present, SET attribute2: Absent, AND attribute3: Present, AND attribute4: Absent, OR attribute5: Present, OR attribute6: Absent, XOR attribute7: Present, XOR attribute8: Absent, SET attribute (writing 1 word)9: Present, SET attribute (writing 1 word)First word address written (4 BCD digits)c1 to c4:0000 to 9999l1, l2:Number of words written (2 BCD digits)01 to 50:1 to 50 wordsIf m is 8 or 9, omit this setting.d11 to d1m, ..., dn1 to dnm:Data of written words (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)s1, s2:If m is an even number, 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]WM00s1s2[CR]1B574D303031460DChecksum (2 hexadecimal digits)This is always added (fixed as 1FH).• Writes the data of the specified number of words starting from the specifiedword in the PT memory.• The result after executing the specified operation (write attribute) on the present contents of the PT memory and the written data is written is as follows:• A maximum of 50 words can be written at one time.The write attribute specified by a command executes the following operation onthe present data of the PT memory and the written data and writes the result.• SET attribute: Specified data is written as it is regardless of the present dataof PT.383SectionCommands/Responses4-3• AND attribute: The result after executing the AND operation on the presentdata of the PT and the written data is written.• OR attribute:The result after executing the OR operation on the presentdata of the PT and the written data is written.• XOR attribute: The result after executing the XOR operation on the presentdata of the PT and the written data is written.Example:Write attributeWrittendataPresent data of the PTmemoryResultSET attribute1234H3456H1234HAND attribute1234H3456H1014HOR attribute1234H3456H3676HXOR attribute1234H3456H2662H4-3-8 Numeral Memory Table Write Command(Sent from Host to PT)CommandFormat[ESC]WN1B574EData of 1 wordmt1t2t3t4* ** ** * * * * *Data of 1 word(l1)(l2)* *d11d1m,dn1dnm (s1)* ** *2C* ** ** *(s2)[CR]* *0D* *m:Checksum present/absent (1 BCD digit)0: Absent1: Present8: Absent (only 1 table entry written)9: Present (only 1 table entry written)t1 to t4:First numeral memory number written to (4 BCD digits)0000 to 1999 (excluding 0247 to 0253)l1, l2:Number of written table entries (2 BCD digits)01 to 20:1 to 20 table entriesWhen m is 8 or 9, omit this setting.d11 to d1m, ..., dn1 to dnm:Contents of the written numeral memory table entries (1 to 8hexadecimal digits)0 to FFFFFFFFHIt is possible to omit initial zeroes so that there are less than 8digits.s1, s2:Checksum (2 hexadecimal digits)When m is 0 or 8, omit this setting.Reference: The maximum number that can be specified for numeral memory table entriesdepends on the setting for numbers of numeral table entries (512/1000/2000)made at the Support Tool.384SectionCommands/Responses4-3ResponseOnly if Yes is set for the Response memory switch, the response indicated belowis returned on normal completion.Format[ESC]1Bs1, s2:FunctionWN00s1s2[CR]574E303032300DChecksum (2 hexadecimal digits)This is always added (fixed as 20H).• Writes the data of the specified number of numeral memory table entries, starting from the specified numeral memory table entries.• A maximum of 20 table entries can be written at one time.• 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.Reference:S Data written by a numeral memory table write command is written according tothe numeral storage type of the numeral.

Характеристики

Тип файла
PDF-файл
Размер
3,16 Mb
Тип материала
Высшее учебное заведение

Список файлов учебной работы

Свежие статьи
Популярно сейчас
Зачем заказывать выполнение своего задания, если оно уже было выполнено много много раз? Его можно просто купить или даже скачать бесплатно на СтудИзбе. Найдите нужный учебный материал у нас!
Ответы на популярные вопросы
Да! Наши авторы собирают и выкладывают те работы, которые сдаются в Вашем учебном заведении ежегодно и уже проверены преподавателями.
Да! У нас любой человек может выложить любую учебную работу и зарабатывать на её продажах! Но каждый учебный материал публикуется только после тщательной проверки администрацией.
Вернём деньги! А если быть более точными, то автору даётся немного времени на исправление, а если не исправит или выйдет время, то вернём деньги в полном объёме!
Да! На равне с готовыми студенческими работами у нас продаются услуги. Цены на услуги видны сразу, то есть Вам нужно только указать параметры и сразу можно оплачивать.
Отзывы студентов
Ставлю 10/10
Все нравится, очень удобный сайт, помогает в учебе. Кроме этого, можно заработать самому, выставляя готовые учебные материалы на продажу здесь. Рейтинги и отзывы на преподавателей очень помогают сориентироваться в начале нового семестра. Спасибо за такую функцию. Ставлю максимальную оценку.
Лучшая платформа для успешной сдачи сессии
Познакомился со СтудИзбой благодаря своему другу, очень нравится интерфейс, количество доступных файлов, цена, в общем, все прекрасно. Даже сам продаю какие-то свои работы.
Студизба ван лав ❤
Очень офигенный сайт для студентов. Много полезных учебных материалов. Пользуюсь студизбой с октября 2021 года. Серьёзных нареканий нет. Хотелось бы, что бы ввели подписочную модель и сделали материалы дешевле 300 рублей в рамках подписки бесплатными.
Отличный сайт
Лично меня всё устраивает - и покупка, и продажа; и цены, и возможность предпросмотра куска файла, и обилие бесплатных файлов (в подборках по авторам, читай, ВУЗам и факультетам). Есть определённые баги, но всё решаемо, да и администраторы реагируют в течение суток.
Маленький отзыв о большом помощнике!
Студизба спасает в те моменты, когда сроки горят, а работ накопилось достаточно. Довольно удобный сайт с простой навигацией и огромным количеством материалов.
Студ. Изба как крупнейший сборник работ для студентов
Тут дофига бывает всего полезного. Печально, что бывают предметы по которым даже одного бесплатного решения нет, но это скорее вопрос к студентам. В остальном всё здорово.
Спасательный островок
Если уже не успеваешь разобраться или застрял на каком-то задание поможет тебе быстро и недорого решить твою проблему.
Всё и так отлично
Всё очень удобно. Особенно круто, что есть система бонусов и можно выводить остатки денег. Очень много качественных бесплатных файлов.
Отзыв о системе "Студизба"
Отличная платформа для распространения работ, востребованных студентами. Хорошо налаженная и качественная работа сайта, огромная база заданий и аудитория.
Отличный помощник
Отличный сайт с кучей полезных файлов, позволяющий найти много методичек / учебников / отзывов о вузах и преподователях.
Отлично помогает студентам в любой момент для решения трудных и незамедлительных задач
Хотелось бы больше конкретной информации о преподавателях. А так в принципе хороший сайт, всегда им пользуюсь и ни разу не было желания прекратить. Хороший сайт для помощи студентам, удобный и приятный интерфейс. Из недостатков можно выделить только отсутствия небольшого количества файлов.
Спасибо за шикарный сайт
Великолепный сайт на котором студент за не большие деньги может найти помощь с дз, проектами курсовыми, лабораторными, а также узнать отзывы на преподавателей и бесплатно скачать пособия.
Популярные преподаватели
Добавляйте материалы
и зарабатывайте!
Продажи идут автоматически
6417
Авторов
на СтудИзбе
307
Средний доход
с одного платного файла
Обучение Подробнее