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

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

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

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

Set 1 (ON) for bit 3 of the fourth word (word n + 3) from the beginning of thePT status control area (designation of memory table copy execution).The contents of numeral memory table entry A are copied to numeralmemory table entry 254 and the date, hour, minute, second are set for thePT.6. Write the memory table entry numbers to the PT status control area in 4-digitBCD as shown below (designation of copy source and copy destinationmemory table entry numbers).• Second word from the beginning (word n + 1): Table entry number ofnumeral memory table B• Third word from the beginning (word n + 2):02557.

Set 1 (ON) for bit 2 of the fourth word (word n + 3) from the beginning of thePT status control area (designation of memory table copy type as numericvalue).8. Set 1 (ON) for bit 3 of the fourth word (word n + 3) from the beginning of thePT status control area (designation of memory table copy execution).Contents of numeral memory table entry B are copied to numeral memorytable entry 255 and the day of week, year, and month are set for the PT.Example of UseRefer to the Example of Use (page 360) in 3-10-2 Displaying the Date and Time.359Section 3-10Display and Setting of Calendar Clock3-10-2 Displaying the Date and TimeThe procedure for displaying the date and time data set using the clock functionof the PT by the numeric value display of numeral memory table entries 247 to253 is described below.Numeral memory table entries 247 to 253 store the date and time data as shownbelow.

With the NT31/NT31C or NT631/NT631C, the data is updated accordingto the clock built into the PT. With the NT21, the data is updated with the valuesread from the words allocated for the Clock Data Area in the host.Numeral memory tableentryContentsRange247Sec.0 to 59248Min.0 to 59249Hour0 to 23250Date1 to 31251Month1 to 12252Year0 to 99Last 2 digits of the year253Day of week0 to 6Sunday through SaturdayComment24-hour notationThe date and time data are stored in signed binary data in a numeral memorytable entry. Therefore, to display a numeric value, it is necessary to set Decimalfor Display Type.SettingRegister the numeric value display for the display of contents of numeralmemory table entries 247 to 253 for the screen according to the date and timedata to be displayed.The Display Type of Numeral Display must be Decimal.

Set other properties according to the display requirements.OperationThe current date and time are continually displayed by the Numeral Display fordisplaying numeral memory table entries 247 to 253.Example of UseThe following describes an example of how to display the date and time, set atthe PC, on the NT31/NT31C or NT631/NT631C.In this example a C200HX, which has a clock function, is used.

The clock function is allocated words AR18 to AR21 in the C200HX.Setting at the Support ToolSet using the Support Tool as indicated below:• PT status control area allocated words: 00100 (CIO area, word 100)• Numeral memory table entry 264:DM0000 (number of words: 2)• Numeral memory table entry 265:DM0002 (number of words: 2)360Section 3-10Display and Setting of Calendar Clock• Contents to be registered to the screen: Numeric value display (numeralmemory table entries 247 to 252)Numeral memory table entry 251 (2-digit display)Numeral memory tableNumeral memory tableentry 252 (2-digit display,entry 250 (2-digit display)no zero suppression)20 01 / 99/ 20/ 50 / 18Numeral memory tableentry 249 (2-digit display)Numeral memory tableentry 247 (2-digit display)Numeral memory table entry 248 (2-digit display)PC ProgramCreate the PC ladder program as shown below.00000@XFER(70)#0004AR18DM0000@MOV(21)#0254102(1)(2)@MOV(21)#0264101@ORW(35)#000C103103TIM #0010001 (1.0S)TIM001@ANDW(34)#FFF7103103(3)TIM #0010002 (1.0S)TIM002@MOV(21)#0255102(4)@MOV(21)#0265101@ORW(35)#000C103103TIM #0010003 (1.0S)TIM003@ANDW(34)#FFF7103103361Display and Setting of Calendar ClockSection 3-10Program OperationWhen the program is executed after displaying the created screen on the PT, theoperation is controlled as follows:1, 2, 3...Reference:1.

When bit 00000 comes ON, the date and time (AR 18 to AR 21) set in the PCis read, and written to words (DM0000 to DM0003) allocated for numeralmemory table entries 264 and 265.2. The contents in numeral memory table entry 264 (day, hour, minute, second) are copied to numeral memory table entry 254, which is used for setting the clock function.3. After waiting about a second for the completion of the memory table copyoperation in step (2), the memory table copy execution bit (10303) is returned to the OFF status.4.

After a wait of about one second for the PT to confirm that the memory tablecopy execution bit has gone OFF, the program copies the contents of numeral memory table entry 265 (day of the week, year, month) to numeralmemory table entry 255, which is used for setting the clock function, in thesame way as described in steps (2) and (3) above.The date and time set at the PC is set for the PT and displayed.S Only the last two digits of the year are displayed. If all four digits of the yearneed to be display, append the first two fixed characters to the PC’s variableyear digits year as required (19jj).S The structure of the clock data in the NT21 is the same as the structure of thewords containing the clock data in the CS/CJ-series and C-series PCs. If thesewords are allocated for the Clock Data Area with the NT21, then the clock datawill be automatically synchronized during operation if the words are allocated.362Section 3-11Printing Data and Checking the Printer Status3-11 Printing Data and Checking the Printer StatusThe following data can be output to a printer connected to the NT31/NT31C orNT631/NT631C while the PT is operating.

(A printer cannot be connected to theNT21.)• Hard copy of the screenThe status of the printer connected the PT can be checked from the host.This section describes the procedure for printing data during operation and alsothe procedure for checking the printer operating status.S In addition to the hard copy of the screen, some kinds of data can be output to aprinter using the System Menu. For details of printing using the System Menu,refer to Displaying and Printing the Display History Record and Displaying andPrinting the Alarm History Record in section 6 in the Setup Manual.Reference:S The Printer Controller and Print Method used by the PT for printing are set bythe memory switches on the PT.Checking the Printer Operating StateThe printer operating status information in the PT status notify area indicateswhether the printer is operating or not.Reference: When NT30/620 compatible mode is being used, the current screen number occupies the first word of the PT status notify area and the words containing theupdated memory table entry number and PT status notify bits are shifted downone word (page NO TAG).SettingThe PT status notify area must be allocated words in the host.

No special settings are required for reading the status.OperationThe bit used to notify the PT status (PT status notify bit) is provided at the secondword (word m + 1) from the beginning in the PT status notify area.1514013121110980076543210000Bit1 (ON)0 (OFF)15PT operation statusRunStop13Battery statusLowNormal12Screen switch strobe11Numeral setting strobe flag10Character string setting strobe flagPrintingStoppedNotified Information7Printer operating status6Backlight statusOffLit/Flashing5Global window open statusOpenClosed4Local window 1 open statusOpenClosed3Local window 2 open statusOpenClosedBit 7 is not supported by the NT21.To check the operating status of the printer, operate the PT status notify area inthe manner shown below.Read the second word (word m + 1) from the beginning in the PT status notifyarea.

Bit 7 in the PT status notify bits shows the operating status of the printer.• 0 (OFF): Stopped• 1 (ON):Printing363Section 3-11Printing Data and Checking the Printer Status3-11-1 Printing the ScreenWith the PT, the screen currently displayed can be printed by using either of theprocedures indicated below.• By the operation at the PT status control area• By pressing a touch switch with the print screen function.Printing a Hard Copy by Operation at the PT Status Control AreaWhen this method is used, an operator can print a hard copy of the screen at anytime.PTPCPT status control areaScreen switch settingCopy memorytable entry settingPT status control setting← Bit 7 ONReserved for system usePrintingReference:S The PT continues operation even while the screen hard copy is being printed.S It is necessary to ensure that the printer operation status (bit 7) among the PTstatus notify bits is 0 (OFF) before starting printing.S Once screen printing has been started by operation of the PT status control bit,it is not possible to stop printing.S If screen printing is specified during printing by the PT, the screen printinginstruction is ignored.Setting364Words must be allocated for the PT status control area in the host.

No specialsettings are required for printing a hard copy of the screen.Section 3-11Printing Data and Checking the Printer StatusOperation15141312The bit used to control the PT status (PT status control bit) is provided at thefourth word (word n + 3) from the beginning in the PT status control area.11109876543210Bit001 (ON)0 (OFF)15Screen displayControlled ItemPerformedNot performed14Processing priority registration (for NT link (1:N))RegisteredCanceled13Continuous buzzerSoundedStopped12Intermittent buzzer (short)SoundedStopped11Display history initializationPerformedNot performed10Not used9Intermittent buzzer (long)8Always 0SoundedStoppedBacklight modeLitFlashing7Screen printingPerformedNot performed6PT window openingDisabledEnabled5Numeral/character string inputDisabledEnabled4PT screen switchingDisabledEnabled3Memory table copy execution2Memory table copy type1Alarm history initialization0Not usedPerformedNot performedNumeralCharacter stringNot performedPerformedAlways 0Bits 2 and 3 are not used when the PT is in NT20S orNT30/620 compatible mode.Bit 7 is not supported by the NT21.To print the hard copy of the screen, operate the PT status control area in themanner shown below.1, 2, 3...1.

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

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

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

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