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

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

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

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

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

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

If the interrupt program’s execution time exceeds the intervaltimer’s set time, scheduled interrupts cannot be executed properly.Ladder DiagramProgrammingThe following table shows the instruction operations related to interrupt inputcontrol.InstructionControl(@)STIM(69) Start one-shot timerStart scheduled-interrupttimerRead timer PVStop timer(@)INT(89)Mask all interruptsUnmask all interruptsOperationStarts interval timer in one-shot mode.Starts interval timer inscheduled-interrupt mode.Reads the timer PV.Stops timer operations.Prohibits all interrupts, including interruptinputs, interval timer interrupts,high-speed counters, etc.Permits all interrupts, including interruptinputs, interval timer interrupts,high-speed counters, etc.Starting TimersThis function sets the mode (one-shot or scheduled-interrupt) and the timer’sSV, and starts the interval timer.One-shot Mode(@)STIM(69)000C2C3Control designation (000: Start one-shot timer)First word of timer SVSubroutine number (4 digits BCD: 0000 to 0049)Scheduled-interrupt Mode(@)STIM(69)003C2C334Control designation (003: Start scheduled-interrupt timer)First word of timer SVSubroutine number (4 digits BCD): 0000 to 0049C2Decrementing counter initial value (4 digits Hex): 0000 to 9999C2+1Decrementing time interval (4 digits BCD; unit: 0.1 ms):0005 to 0320 (0.5 to 32 ms)SectionCPM2A/CPM2C Interrupt Functions2-1The interval from when STIM(69) is executed until the set time elapses is calculated as follows:(Content of word C2) x (Content of words C2 + 1) x 0.1 ms(0.5 to 319,968 ms)When a constant is set for C2, that value will be taken as the decrementingcounter initial value, and the decrementing time interval will become 10 (1 ms).(The SV is specified just as it is, in units of ms.)Reading Timer PVsThis function reads interval timer PVs.(@)STIM(69)006Control designation (006: Read timer PV)C2C3C2C2+1C3Number of times decrementing timeris decremented (4 digits Hex)Decrementing time interval(4 digits BCD; unit: 0.1 ms)Time elapsed since last decrement(4 digits BCD; unit: 0.1 ms)Stopping TimersThis function stops the interval timer.(@)STIM(69)010Control designation (010: Stop timer)000Fixed: 000Fixed: 000000Masking or Unmasking All InterruptsFor details on masking/unmasking all interrupts, refer to 2-1-1 Interrupt Inputsand 7-29 Interrupt Control Instructions.35SectionCPM2A/CPM2C Interrupt Functions2-1Operation ExampleOne-shot ModeExplanationIn this example, the timer is started when the execution condition (00005) turnsfrom OFF to ON.

When the time (approx. 1 s) has elapsed, the interrupt subroutine is executed one time. When the interrupt subroutine is executed, 1 is addedto DM 0000.Elapsed time: 100 x 100 x 0.1 = 1,000 msProgrammingON for 1 cycle at beginningof operationClears Increment Area (DM 0000).Decrement counter settingCount: 100 (0000 to 9999 BCD)Count interval settingCount interval setting: 10 ms(0005 to 0320 BCD)(69)Starts interval timer in one-shot mode.(Execution condition)Always ONExecutes interrupt one timeonly when time elapses.36SectionCPM2A/CPM2C High-speed Counters2-2Scheduled-interrupt ModeExplanationIn this example, the timer is started when the execution condition (00005) turnsfrom OFF to ON.

Then the interrupt subroutine is executed each time that the settime (approx. 1 s) elapses. Each time the interrupt subroutine is executed, 1 isadded to DM 0000.Elapsed time: 100 x 100 x 0.1 = 1,000 msProgrammingON for 1 cycle at beginningof operationClears Increment Area (DM 0000).Decrement counter settingCount: 100 (0000 to 9999 BCD)Count interval settingCount interval setting: 10 ms (0005 to 0320 BCD)(69)Starts interval timer in scheduled-interrupt mode.(Execution condition)Always ONExecutes interrupt each time the set time elapses.2-2CPM2A/CPM2C High-speed CountersCPM2A CPU Units and most CPM2C CPU Units have five points for high-speedcounters: One point for a high-speed counter with a maximum response frequency of 20 kHz, and four points for interrupt inputs (counter mode).CPM2C CPU Units with 10 I/O points have four points for high-speed counters:One point for a high-speed counter with a maximum response frequency of 20kHz, and three points for interrupt inputs (counter mode).High-speedcountersHigh-speed counterNo interruptsTarget value comparison interrupts1 pointCount checkinterruptsInterrupt inputs(counter mode)4 points(2 points in CPM2C CPUUnits with 10 I/O points)Types of High-speedCountersRange comparisoninterruptsNo interruptsCount-upinterruptsThe CPM2A/CPM2C provides both a built-in high-speed counter and built-in interrupt inputs.37SectionCPM2A/CPM2C High-speed Counters2-2High-speed CounterThe built-in high-speed counter is a counter based on inputs to the CPU Unit’sbuilt-in points 00000 to 00002.

The high-speed counter itself has one point, andit can provide either an incrementing/decrementing or just an incrementingcount depending on the mode setting.Input No.(See note.)000000000100002Responsefrequency5 kHz20 kHzInput mode (count value)Control methodDifferential phase input mode(-8388608 to 8388607)Pulse + direction inputmode(-8388608 to 8388607)Target valuecomparison interruptsRange comparisoninterruptsUp/down pulse input mode(-8388608 to 8388607)Increment mode(0 to 16777215)Note Input points not used for counter inputs can be used as ordinary inputs.Interrupt Inputs (Counter Mode)Interrupt inputs (counter mode) are counters based on inputs to the CPU Unit’sbuilt-in points 00003 to 00006 (00003 to 00005 in CPM2C CPU Units with 10 I/Opoints). These counters have four points, and they can provide either an incrementing or decrementing count depending on the mode setting.

Since this function utilizes interrupt inputs for counting, it is not possible to use the same inputsfor other interrupt inputs.Input No.(See note.)00003000040000500006NoteResponsefrequency2 kHzInput mode (count value)Incrementing counter(0000 to FFFF)Control methodCount-up interruptsDecrementing counter(0000 to FFFF)1. Input points not used for counter inputs can be used as ordinary inputs.2.

Input points 00005 and 00006 do not exist in CPM2C CPU Units with 10 I/Opoints.High-speed Counter InterruptsInterrupts by High-speed Counter (Count-check Interrupts)Target Value Comparison InterruptsThe current count is compared to each target value in the order that they are registered in the table. When the count is the same as the current target value, aninterrupt subroutine is executed.

Up to 16 target values and interrupt subrou-38SectionCPM2A/CPM2C High-speed Counters2-2tines can be registered in the table in either the incrementing or decrementingdirection.Current countTarget values in incrementingdirectionTarget values in decrementingdirectionMatch with target valueduring incrementing countMatch with target valueduring decrementing countTimeInterrupt processing can be executed when the current count matches a target value ineither the incrementing or decrementing direction.Range Comparison InterruptsA range comparison table contains up to eight ranges which are each defined bya lower limit and an upper limit, as well as their corresponding subroutine numbers.

The corresponding subroutine is called and executed when the currentcount (the counter PV) falls within a given range.Counter PVUpper limit 1Lower limit 1Upper limit 2Lower limit 2Range comRange comparison condi- parison condition 2 satisfied. tion 1 satisfied.Range comRange comparison condi- parison condition 1 satisfied. tion 2 satisfied.Interrupt processing can be executed when a range comparison condition is satisfied.Furthermore, when the counter PV is within a range between an upper limit and a lowerlimit, the corresponding bits (from 0 to 7) in AR 11 will turn ON.Count-up Interrupts by Interrupt Inputs (Counter Mode)An interrupt subroutine is executed each time the condition is satisfied that thecounter PV equals the counter SV (in incrementing mode) or 0 (in decrementingmode).39SectionCPM2A/CPM2C High-speed Counters2-22-2-1 Using High-speed CountersThe CPM2A/CPM2C’s CPU Unit has one built-in channel for a high-speedcounter that can count inputs at a maximum of 20 kHz.

Using this in conjunctionwith the interrupt function enables target value comparison control or rangecomparison control to be executed without deviating from the cycle time.Counter inputsReset inputSensorRotary encoderInput modeItemIncrementPulse inputsSee note 1.Response frequencyDifferential phase Pulse + directionUp/down inputPhase-A inputsPulse inputsCW inputsPhase-B inputsDirection inputsCCW inputsPhase-Z inputs (Reset inputs) (See note 1.)Differential phasePhase inputsPhase inputsinputs (4X)5 kHz20 kHz20 kHzCount value–8388608 to 83886070 to 16777215Counter PV storage destination(See note 2.)InterruptsTarget valuecomparisonRange comparisonWords SR 248 (rightmost digit) and SR 249 (leftmost digit)Inputnumber000000000100002Input methodCounter reset methodPhase inputs20 kHzUp to 16 target values and interrupt subroutine numbers can be registered in eitherthe incrementing or decrementing direction.Up to eight ranges (with upper and lower limits) and subroutine numbers can beregistered.Phase-Z signal + software reset: Counter is reset when IR 00002 turns ON whileSR 25200 is ON.Software reset: Counter is reset when SR 25200 turns ON.Note1.

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