Beginner guide (986746), страница 7

Файл №986746 Beginner guide (Техническая документация) 7 страницаBeginner guide (986746) страница 72015-07-23СтудИзба
Просмтор этого файла доступен только зарегистрированным пользователям. Но у нас супер быстрая регистрация: достаточно только электронной почты!

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

Thenthe original interrupt will resumed after the higher-priority interrupt processing has been completed.If interrupts of the same priority are generated simultaneously, they will be processed in thefollowing order:Interrupt inputs → interrupt input 1 → Interrupt input 2 → Interrupt input 3 → (including count-upmode)Interval timer interrupt → High-speed counter interrupt.3-73.•FEATURES & FUNCTIONSInterrupt InputsBy tuning the CPM2A CPU Unit’s built-in input points from OFF to ON, the normal program canbe stopped and the interrupt program executed.

The interrupt inputs are allocated to four points(00003 to 0006).Input Number00003000040000500006•InterruptNumber0123SubroutineNumber000001002003Minimum inputsignal width0.05msInterrupt responsetime0.3 ms (from wheninput turns ONuntil programexecution)Interval Timer InterruptsThe CPM2A has one interval timer (precision: 0.1 ms) that can be set from 0.5 ms to 319,968 ms.There are two interrupt modes: the one-shot mode, in which a single interrupt is executed when thetime is up, and the schedule-interrupt mode, in which interrupts are executed at regular intervals.3-83.FEATURES & FUNCTIONSOperationSet timeInterruptresponse time•One-shot modeSchedule-Interrupt modeInterrupt is executedInterrupt is executed atonce when time hasregular intervals.elapsed.0.5 to 316,968 ms (Unit:0.1 ms)0.3 ms (from when time has elapsed until executionof interrupt program)High Speed CountersThe CPM2A CPU Unit has a total of five points for high-speed counters: one point for high-speedcounter with a maximum response frequency of 20 kHz, and four points for interrupt inputs (countermode).High Speed countersHigh Speed counters1 pointNo interruptsCount checkinterruptsTarget valuecomparison InterruptsRange comparisoninterruptsInterrupt inputs(counter mode)4 pointsNo interruptsCount checkinterruptsThe CPM2A provides both a built-in high-speed counter and built-in interrupt inputs.3-93.•FEATURES & FUNCTIONSInterrupt Inputs (Counter Mode)Interrupt inputs (counter mode) are counters based on inputs to the CPU Unit’s built-in points 00003to 00006.

These counters have four points, and they can provide either an incrementing ordecrementing count depending on the mode setting. Since this function utilizes interrupt inputs forcounting, it is not possible to use the same inputs for other interrupt inputs.Input Number(Note 1)00003000040000500006•Responsefrequency2 kHzInput Mode (Count value)Control MethodIncrementing counter(0000 to FFFF)Decrementing counter (0000 to FFFF)Count-up interruptsInterrupt by High Speed Counter Inputs (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, an interrupt subroutine is executed. Up to 16target values and interrupt subroutines can be registered in the table in either the incrementing ordecrementing direction.Current CountTarget value in incrementingdirectionTarget value in decrementingdirectionTimeMatch with target valueduring incrementing countMatch with target valueduring decrementing count3-103.FEATURES & FUNCTIONSRange Comparison InterruptsA range comparison table contains up to eight ranges which are each defined by a lower limit and anupper limit, as well as their corresponding subroutine numbers.

The corresponding subroutine iscalled and executed when the current count (the counter PV) falls within a given range.Current PVUpper limit 1Upper limit 2Upper limit 3Upper limit 4Range comparison condition 2 satisfiedRange comparison condition 1 satisfiedRange comparison condition 1 satisfiedRange comparison condition 2 satisfiedCount-up interrupts by Interrupt Inputs (Counter Mode)An interrupt subroutine is executed each time the condition is satisfied that the counter PV equalsthe counter SV (in incrementing mode) or 0 (in decrementing mode).Example of Input Interrupt In Counter Mode:The four built-in interrupt inputs in the CPM2A’s CPU unit be used in counter mode as inputs of upto 2 kHz. These inputs can be used as either incrementing counters of decrementing counters,triggering an interrupt (i.e., executing an interrupt subroutine) when the count matches the set value.Input NumberCount000030000400005000060 to 65535(0000 to FFFF)Interruptnumber0123Subroutine number000001002003Responsefrequency2 kHz3-113.•FEATURES & FUNCTIONSHigh Speed CounterThe built-in high-speed counter is a counter based on inputs to CPU Unit’s built-in points 00000 to00002.

The high-speed counter itself has one-point, and it can provide either an incrementing/decrementing or just an incrementing count depending on the mode setting.Input No.(See Note).000000000100002Responsefrequency5 kHz20 kHzInput mode (count value)Differential phase input mode(-8388608 to 8388607)Pulse + direction input mode(-8388608 to 8388607)Up/ down pulse input mode(-8388608 to 8388607)Increment mode(0 to 16777215)Control MethodTarget value comparisoninterruptsRange comparison interruptsInput points not used for counter inputs can be used as ordinary inputs.Example of using High Speed CounterThe CPM2A’s CPU Unit has one built-in channel for a high-speed counter that can count inputs at amaximum of 20 kHz. Using the conjunction with the interrupt function enables target valuecomparison control or range comparison control to be executed without deviating from the cycletime.Inputnumber000000000100002Input methodResponse frequencyControl valueCounter PV storagedestination (see note 2.)InterruptsTarget valuecomparisonRangeComparisonInput ModeDifferential phase Pulse + directionUp/ down pulseinput modeoutputsoutputsA-phase inputCount inputCW inputB-phase inputDirection inputCCW inputZ-phase input (Reset inputs)(See note 1.)Differential phasePhase inputsPhase inputsinput (4x)5 kHz20 kHz20 kHz-8388608 to 8388607Words SR 248 (rightmost digit) and SR249 (leftmost digit)Increment modeCount inputSee note 1.Phase inputs20 kHz0 to 16777215Up to 16 target values and interrupt subroutine number can be registered in either theincrementing or decrementing direction.Up to 8 ranges (with upper and lower limits) and subroutine numbers can beregistered.Counter reset methodNote:Z-phase signal + software reset: Counter is reset when IR 00002 turns ONwhile SR25200 is ON.Software reset: counter is reset when SR 25200 turns ON.1.

Input points not used for counter inputs can be used as ordinary inputs.2. When not used for counter PV storage destination, these words can be used as ordinary IR words.3-123.•FEATURES & FUNCTIONSPulse Output FunctionThe CPM2A has two pulse outputs. By means of a selection in the PLC setup, these outputs can beused as two single-pulse outputs without acceleration and deceleration, two variable duty ratio pulseoutputs, or pulse outputs with trapezoidal acceleration/ deceleration, (one pulse + direction outputand one up/down pulse output).

The pulse output PV coordinate system can also be specified in thePLC setup as either relative or absolute.In order to utilize pulse outputs, it is necessary to use a CPU Unit with transistor outputs (either aCPM2A-[][][][]T-[] or CPM2A-[][][][]T1-[]).Single-phase pulseoutputs withoutaccel/ decelPULS(65) andSPED(64)Pulse output 0(See note 1)Pulse output 1(See note 1)Variable dutyratio pulseoutputsPWM(-)Single-phase pulse outputs with trapezoidalacceleration and decelerationPulse + direction outputs Up/ down pulse outputsPULS(65) and ACC(-)Pulse output 0(See note 1)Pulse output 1(See note 1)Pulseoutput 00.01 to 10 kHz10 Hz--Continuous,independent1 to 167772150.1 to 999.9 Hz0.1 Hz--Continuous0.01 to 10 kHz10 Hz10 Hz (See note 2.)10 HzContinuous0.01 to 10 kHz10 Hz10 Hz (See note2.)10 HzContinuous, independent--± 1 to 16777215± 1 to 1677721550%Yes0 to 100%No50%Yes50%YesNoNoYesYesStart SpeedspecificationNoNoYesYesDutyspecificationNoYesNoNoExecution InstructionOutputnumber0100001001Output frequency rangePitchUp.down frequency pitchStart speed pitchOutput modeNumbers ofpulsesDuty ratioControlmethodMovementspecificationAccel/ Decelespecification1.2.Pulse outputPulseoutput 0DirectionoutputCW pulseoutputCCW pulseoutputWith single-phase pulse outputs, pulse outputs 0 and 1 can each be output independently.Pulse outputs can be accelerated or decelerated in units of 10 Hz every 10 ms.3-133.•FEATURES & FUNCTIONSSynchronized Pulse ControlBy combining the CPM2A’s high-speed counter function with the pulse output function, the outputpulse frequency can be controlled as a specified multiple of the input pulse frequency.A CPU Unit with transistor outputs (CPM2A-[][]CDT-D or CPM2A-[][]CDT1-S) is required inorder to use synchronized pulse control.Input number0000000001Input methodInput frequency rangeOutput number01000(See note 3.)01001Output methodOutput frequency rangeFrequency ratioSynchronized control cycle1.2.3.Input ModeDifferential phasePulse + directionUp/ down pulseinput modeoutputsoutputsA-phase inputCount inputCW inputB-phase inputDirectionCCW inputDifferential phaseSingle-phase inputSingle-phase inputinput (4z)10 Hz to 500 Hz (accuracy ± 1 Hz)20 Hz to 1 kHz (accuracy ± 1 Hz)300 Hz to 20 kHz (accuracy ± 25 Hz)(See note 2.)Pulse output 0Pulse output 1Single-phase output10 Hz to 10 kHz (accuracy 10 Hz)1 % to 1,000 % (Can be specified in units of 1 %)10 msIncrement modeCount inputSee note 1.Single-phase inputCan also be used as an ordinary input.When 10 kHz or less, then the accuracy is ± 10 HzEither can be selected as the output number, using SYNC(-).3-143.•FEATURES & FUNCTIONSAnalog ControlsThe CPM2A has two analog controls that can be used for a wide range of timer and counter analogsettings.

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

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

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

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