CPM2A_PROGRAMMING MANUAL (W353-E1-2) (Техническая документация), страница 9

PDF-файл CPM2A_PROGRAMMING MANUAL (W353-E1-2) (Техническая документация), страница 9 Инструментальные средства (5384): Другое - 9 семестр (1 семестр магистратуры)CPM2A_PROGRAMMING MANUAL (W353-E1-2) (Техническая документация) - PDF, страница 9 (5384) - СтудИзба2015-07-23СтудИзба

Описание файла

Файл "CPM2A_PROGRAMMING MANUAL (W353-E1-2)" внутри архива находится в следующих папках: Техническая документация, 1. Программируемый контроллер OMRON SYSMAC CPM2A. PDF-файл из архива "Техническая документация", который расположен в категории "". Всё это находится в предмете "инструментальные средства" из 9 семестр (1 семестр магистратуры), которые можно найти в файловом архиве МПУ. Не смотря на прямую связь этого архива с МПУ, его также можно найти и в других разделах. Архив можно найти в разделе "остальное", в предмете "инструментальные средства" в общих файлах.

Просмотр PDF-файла онлайн

Текст 9 страницы из PDF

The interrupt inputsare allocated to four points (00003 to 00006*).Note *Input points 00005 and 00006 do not exist in CPM2C CPU Units with only 10 I/Opoints.Interrupt inputNormalprogramInterruptprogramSubroutine25SectionCPM2A/CPM2C Interrupt FunctionsInput number(Note 1)00003000040000500006NoteInterruptnumber0123Subroutinenumber(Note 2)00000100200326Interruptresponse time0.3 ms (fromwhen input turnsON until programexecution)1. Input numbers 00003 to 00006 can be used for any of the following functions: interrupt inputs, interrupt inputs (counter mode), or quick-response inputs.

When not being used for any of these, they can be used as ordinaryinputs.2. Subroutine numbers 000 to 003 are the subroutine numbers for interruptprograms started up when interrupt inputs or count-up interrupts for interrupt inputs (counter mode) are generated. When not being used for this purpose, they can be used as ordinary inputs.The following table shows the relationships between interrupt inputs and theCPM2A/CPM2C PC’s other functions.FunctionNoteMinimuminput signalwidth50 µsµ2-1Interrupt inputs (counter mode)Synchronized pulse controlCan be used simultaneously.Interrupt inputsSee note 1.Interval timer interruptsCan be used simultaneously.High-speed countersCan be used simultaneously.Interrupt inputs (counter mode)See note 1.Pulse outputsCan be used simultaneously.Quick-response inputsSee note 1.Input time constantSee note 2.ClockCan be used simultaneously.1. The same input number (from 00003 to 00006) cannot be used for morethan one of the following functions: interrupt inputs, interrupt inputs (countermode), or quick-response inputs.2.

When inputs 00003 to 00006 are set for use as interrupt inputs (countermode), the input time constants for the relevant inputs are disabled. The input time constants remain in effect, however, for the values for refreshingthe relevant input relay area.SectionCPM2A/CPM2C Interrupt Functions2-1Procedure for Using Interrupt InputsSet the interrupt input number.Wire the inputs.Input numbers: 00003 to 00006PC Setup (DM 6628)Use as interrupt inputs (interrupt input mode or counter mode)Create a ladder diagram program.INT(89): For masking and unmasking interrupt inputs.SBN(92) and RET(93): For creating interrupt subroutines.Interrupt inputInterrupt isgenerated.Interrupt input 0Ladder diagram programmingSpecified subroutine executed.INT(89) instruction(92)Permission to useinterrupt inputInterrupt input 1(93)Interrupt input 2Interrupt input 3PC SetupDM 6628Setting the InterruptInput NumberWith interrupt inputs (interrupt input mode), the subroutine numbers executedfor the input numbers are fixed.Input numberInterrupt numberSubroutine number000030000000041001000052002000063003The same input number (from 00003 to 00006) cannot be used for more thanone of the following functions: interrupt inputs, interrupt inputs (counter mode),or quick-response inputs.27SectionCPM2A/CPM2C Interrupt FunctionsWiring the Inputs2-1With a CPM2A, wire to the input terminals as shown in the following illustration.Input number 00003: Interrupt input 0Input number 00004: Interrupt input 1Input number 00005: Interrupt input 2Input number 00006: Interrupt input 3With a CPM2C, wire to the input terminals as shown in the following illustration.Input terminalsInput connector000040000300006000050000400003Note Refer to the operation manual for your CPU Unit for information on wiring.PC SetupThe following table shows the settings in the PC Setup area related to interruptinput usage.WordDM 6628Bits00 to 0304 to 0708 to 1112 to 15Interrupt setting forinput 00003Interrupt setting forinput 00004Interrupt setting forinput 00005*Interrupt setting forinput 00006*Function0: Normal inputSetting11: Interrupt input(interrupt input mode orcounter mode)2: Quick-response inputNote *Input points 00005 and 00006 do not exist in CPM2C CPU Units with only 10 I/Opoints.The settings will go into effect when the mode is changed (from PROGRAM toMONITOR/RUN) or when the power supply is turned ON to the CPM2A/CPM2C.Ladder DiagramProgramming28The following table shows the instruction operations related to interrupt inputcontrol.SectionCPM2A/CPM2C Interrupt FunctionsInstruction(@)INT(89)Control2-1OperationMask/unmask interruptinputsClear interrupt inputsProhibits or permits specified interrupts.Clears the cause of a prohibited interruptinput.Reads the permitted/prohibited status ofan interrupt input.Prohibits all interrupts, including interruptinputs, interval timer interrupts, high-speedcounters, etc.Read current maskstatusMask all interruptsUnmask all interruptsPermits all interrupts, including interruptinputs, interval timer interrupts, high-speedcounters, etc.Masking or Unmasking Interrupt InputsThis function is used to mask or unmask input numbers 00003 to 00006 (interrupt inputs 0 to 3).(@)INT(89)000Interrupt control designation (000: Mask/unmask interrupt inputs)000Fixed at 000.C2Control data wordSpecifies/stores 0.Specifies input 00006 (interrupt input 3).Specifies input 00005 (interrupt input 2).Specifies input 00004 (interrupt input 1).Specifies input 00003 (interrupt input 0).0: Clear mask (interrupt input permitted).1: Set mask (interrupt input prohibited).All interrupt inputs are prohibited at the beginning of operation (in either PROGRAM mode or in RUN/MONITOR mode).

To use interrupt inputs, use INT(89)to permit them.Clearing Interrupt InputsThis function is used to clear input numbers 00003 to 00006 (interrupt inputs 0 to3). Since interrupt inputs are recorded, masked interrupts will be serviced afterthe mask is removed unless they are cleared first. Use INT(89) to clear the causeof the interrupt inputs so that they will not be executed when interrupt inputs arepermitted (i.e., when the mask is removed).29SectionCPM2A/CPM2C Interrupt Functions2-1(@)INT(89)001000C2Interrupt control designation (001: Clear interrupt inputs)Fixed at 000.Control data wordSpecifies/stores 0.Specifies input 00006 (interrupt input 3).Specifies input 00005 (interrupt input 2).Specifies input 00004 (interrupt input 1).Specifies input 00003 (interrupt input 0).0: Retain cause of interrupt input.1: Clear cause of interrupt input.While interrupt inputs are masked, one cause is recorded for each interrupt input.Reading Current Mask StatusThis function is used to read the current mask status for input numbers 00003 to00006 (interrupt inputs 0 to 3).(@)INT(89)002Interrupt control designation (002: Read current mask status)000Fixed at 000.Control data wordC2Specifies/stores 0.Specifies input 00006 (interrupt input 3).Specifies input 00005 (interrupt input 2).Specifies input 00004 (interrupt input 1).Specifies input 00003 (interrupt input 0).0: Mask is cleared (interrupt inputs permitted).1: Mask is set (interrupt inputs prohibited).Masking or Unmasking All InterruptsThis function is used to mask or unmask all interrupt processing, including interrupt inputs (interrupt input mode and counter mode), interval timer interrupts,and high-speed counters.

Masked inputs are recorded, but ignored.Masking All Interrupts(@)INT(89)10000000030Interrupt control designation (100: Mask all interrupts)Fixed at 000.Fixed at 000.SectionCPM2A/CPM2C Interrupt Functions2-1Unmasking All Interrupts(@)INT(89)200000000Interrupt control designation (200: Unmask all interrupts)Fixed at 000.Fixed at 000.The masking or unmasking all interrupts cannot be executed within an interruptsubroutine.If causes for interrupts occur while all interrupts are masked, the causes will berecorded for each interrupt but the interrupt processing will not be executed.When “unmask all interrupts” is executed, the processing will then be carried outaccording to the interrupt mask status at that point in time.Interrupt masks cannot be cleared simply by executing “unmask all interrupts.”Executing “unmask all interrupts” merely restores the status that was in effectprior to the execution of “mask all interrupts.”Note INT(89) must be executed in order, with “mask all interrupts” followed by “unmask all interrupts.”Operation ExampleExplanationIn this example, an interrupt subroutine is executed by turning input 00003 fromOFF to ON.

The interrupt subroutine adds 1 to DM 0000.WiringThe following diagram shows input wiring in the CPM2A.Input deviceThe following diagram shows input wiring in the CPM2C.Input terminalsInput connectorInputdeviceInputdevice31SectionCPM2A/CPM2C Interrupt Functions2-1PC Setup15DM 662800001Input 00003 is used as an interrupt input.(Inputs 00004 to 00006 are used as ordinary inputs.)ProgrammingON for 1 cycle at beginningof operationClears Increment Area (DM 0000).(89)Permits interrupt for interrupt input 0 (input 00003).Always ONExecuted when input 00003 turns from OFF to ON.2-1-2 Interval Timer InterruptsOne interval timer (precision: 0.1 ms) is supported and it can be set from 0.5 msto 319,968 ms. There are two interrupt modes: the one-shot mode, in which asingle interrupt is executed when the time is up, and the scheduled-interruptmode, in which interrupts are executed at regular intervals.Interval timer interruptNormalprogramInterruptprogramOne-shot modeOperation32SubroutineScheduled-interrupt modeSet timeInterrupt is executed onceInterrupts are executed atwhen time has elapsed.regular intervals.0.5 to 316,968 ms (Unit: 0.1 ms)Interruptresponse time0.3 ms (from when time has elapsed until execution of interruptprogram)SectionCPM2A/CPM2C Interrupt Functions2-1The following table shows the relationships between interval timer interruptsand the CPM2A/CPM2C’s other functions.Interval timer interruptsSynchronized pulse controlCan be used simultaneously.Interrupt inputsCan be used simultaneously.Interval timer interrupts---High-speed countersCan be used simultaneously.Interrupt inputs (counter mode)Can be used simultaneously.Pulse outputsCan be used simultaneously.Quick-response inputsCan be used simultaneously.Input time constantCan be used simultaneously.ClockCan be used simultaneously.Procedure for Using Interval Timer InterruptsSelect the mode.Ladder diagram programmingEither one-shot mode or schedule-interrupt modeSTIM(69)Interrupt isexecuted.Interval timerLadder diagram programmingSTIM(69)INTERVAL TIMERinstructionSpecified subroutine is executed.SBN(92)Start timerOne-shot modeScheduled-interrupt modeRead elapsed timeSelecting the ModeRET(93)Select either the one-shot mode or the scheduled-interrupt mode.One-shot ModeNormal programNormal programInterrupt programInterval timer interruptInterval timer operationStart timer33SectionCPM2A/CPM2C Interrupt Functions2-1Scheduled-interrupt ModeNormal programInterrupt programInterval timer interruptInterval timer operationStart timerIn the scheduled-interrupt mode, the timer is reset each time the interrupt program is called when the set time elapses, and then the interval timer operatesagain.Be careful with regard to the interrupt program’s execution time and the intervaltimer’s set time.

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