Главная » Просмотр файлов » CPM2A_PROGRAMMING MANUAL (W353-E1-2)

CPM2A_PROGRAMMING MANUAL (W353-E1-2) (986750), страница 80

Файл №986750 CPM2A_PROGRAMMING MANUAL (W353-E1-2) (Техническая документация) 80 страницаCPM2A_PROGRAMMING MANUAL (W353-E1-2) (986750) страница 802015-07-23СтудИзба
Просмтор этого файла доступен только зарегистрированным пользователям. Но у нас супер быстрая регистрация: достаточно только электронной почты!

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

Switch the PC to PROGRAM mode. (Immediate stop)463Section 7-27Pulse Output InstructionsOperation in IndependentModeIn independent mode, just the number of output pulses set by PULS(65) will beoutput. The number of output pulses must be specified by executing PULS(65)before executing ACC(––).

(Pulses won’t be output if the number of outputpulses has not been specified in advance.)Pulse frequencyTimeThe number of output pulses must be specified again with PULS(65) each timethat the pulse output has been stopped.In independent mode, the pulse output will begin decelerating at the point determined by the preset number of output pulses and the acceleration/decelerationrates. The pulse output will stop when the preset number of output pulses hasbeen output.Pulse frequencyTime(The number of output pulses is always accurately output.)If the number of output pulses required for acceleration and deceleration (thetime to reach the target frequency × the target frequency) exceeds the presetnumber of pulses, the acceleration and deceleration will be cut short and thepulse output will be triangular rather than trapezoidal.Pulse frequencyTime(The number of output pulses is always accurately output.)If a high acceleration/deceleration rate and a low number of output pulses areset, there will be effectively no acceleration and deceleration.

(The pulse outputwill operate at a constant speed.)If the (target frequency ÷ acceleration/deceleration rate) is not an integer value,the specified acceleration/deceleration rates will be increased or decreased. Inthe following example, the acceleration and deceleration are 10-ms long, (1) isthe acceleration/deceleration rate, and (2) is the target frequency.Pulse frequencyTime10 ms46410 msSection 7-27Pulse Output InstructionsOperation in ContinuousModeIn continuous mode, pulses will be output indefinitely until stopped by executingINI(61) with C=003, executing ACC(––) again with the target frequency (in C+1)set to 0000, or switching the PC to PROGRAM mode.Pulse frequencyTimeThe following conditions apply when ACC(––) is executed while pulses are already being output with trapezoidal acceleration/deceleration.• ACC(––) will have no effect if it is executed when the pulse output is accelerating or decelerating.• When ACC(––) is executed while pulses are being output in continuous mode,the frequency can be changed to a new target frequency (0001 to 1000: 10 Hzto 10 kHz) with the set acceleration/deceleration rates.• If pulses are being output in independent mode, the pulse output can be decelerated to a stop while by executing ACC(––) with the target frequency (in C+1)set to 0000.

The acceleration/deceleration rates and number of output pulseswon’t be checked or changed.• ACC(––) will have no effect if it is executed when pulses are being output byone of the following instructions. (The pulse output will continue unchanged.)Pulses being output from output 01000 by SPED(64).Pulses being output from output 01001 by SPED(64).Pulses being output from output 01000 by PWM(––).Pulses being output from output 01001 by PWM(––).Note Be sure to check the status of the pulse output before executing ACC(––).FlagsER:A data area boundary is exceeded.Indirectly addressed DM word is non-existent.

(Content of *DM word isnot BCD, or the DM area boundary has been exceeded.)P is not 000.M is not 000, 002, or 010 to 013. (The mode specifier is read only whenstarting the pulse output.)ACC(––) is executed for a bit from which pulses are already being output by PWM(––) or SPED(64).ACC(––) is executed in an interrupt subroutine while a pulse I/O or highspeed counter instruction (INI(61), PRV(62), CTBL(63), SPED(64),PULS(65), ACC(––), PWM(––), or SYNC(––)) is being executed in themain program.7-27-4 PULSE WITH VARIABLE DUTY RATIO – PWM(––)Ladder SymbolsOperand Data AreasP: Port specifierPWM(––)@PWM(––)PPFFDD000 or 010F: FrequencyIR, SR, AR, DM, HR, LR, #D: Duty ratioIR, SR, AR, DM, HR, LR, #465Section 7-27Pulse Output InstructionsLimitationsThis instruction is available in the CPM2A/CPM2C only.P must be 000 or 010, F must be BCD between 0001 and 9999, and D must beBCD between 0001 and 0100.DescriptionPWM(––) is used to output pulses with the specified duty ratio from the specifiedoutput bit.

The pulse output continues until PWM(––) is executed again with adifferent duty ratio, INI(61) is executed with C=003, or the PC is switched toPROGRAM mode.In general, PWM(––) should be executed just once to start the pulse output; usethe differentiated variation (@PWM(––)) or an input condition that is ON for justone cycle.Variable duty-ratio pulses can be output simultaneously and independently fromtwo output bits.When variable duty-ratio pulses are being output from an output bit andPWM(––) is executed for that bit again with a different duty ratio, pulses will continue being output with the new duty ratio.

The frequency cannot be changed.PWM(––) cannot be executed for an output bit if pulses are already being outputfrom that bit by SPED(64) or ACC(––). An error will occur and SR 25503 will beturned ON if PWM(––) is executed under these circumstances.Note Refer to 2-5 Pulse Output Functions for more details.Port Specifier (P)The port specifier indicates the output bit where the pulses will be output.PPulse output location(s)000 Variable duty-ratio pulse output 0 (output 01000)010 Variable duty-ratio pulse output 1 (output 01001)Frequency (F)The 4-digit BCD value of F sets the pulse frequency in units of 0.1 Hz. The frequency can be set between 0001 and 9999 (0.1 to 999.9 Hz).Duty Ratio (D)The 4-digit BCD value of D specifies the duty ratio of the pulse output, i.e., thepercentage of time that the output is ON.

The duty ratio can be set between 0001and 0100 (1% to 100%). The duty ratio is 75% in the following diagram.tont on+ D (1% to 100%)TTFlagsER:A data area boundary is exceeded.Indirectly addressed DM word is non-existent. (Content of *DM word isnot BCD, or the DM area boundary has been exceeded.)P is not 000 or 010, F is not BCD between 0001 and 9999, or D is notBCD between 0001 and 0100. (The frequency setting in F is read onlywhen starting the pulse output.)ACC(––) is executed for a bit from which pulses are already being output by ACC(––) or SPED(64).PWM(––) is executed in an interrupt subroutine while a pulse I/O orhigh-speed counter instruction (INI(61), PRV(62), CTBL(63),SPED(64), PULS(65), ACC(––), PWM(––), or SYNC(––)) is beingexecuted in the main program.466Section 7-27Pulse Output Instructions7-27-5 SYNCHRONIZED PULSE CONTROL – SYNC(––)Ladder SymbolsOperand Data AreasP1: Input port specifierSYNC(––)@SYNC(––)P1P1P2P2CC000P2: Output port specifier000 or 010C: Scaling factorIR, SR, AR, DM, HR, LR, #LimitationsThis instruction is available in the CPM2A/CPM2C only.P1 must be 000 and P2 must be 000 or 010.DescriptionSYNC(––) takes the frequency of the input pulse received through the highspeed counter inputs, multiplies it by a fixed scaling factor, and outputs pulsesfrom the specified output bit at the resulting frequency.Output frequency = Input frequency × Scaling factor/100In general, SYNC(––) should be executed just once each time that synchronizedpulse output control needs to be set; use the differentiated variation(@SYNC(––)) or an input condition that is ON for just one cycle.Note Refer to 2-5 Pulse Output Functions for more details.Input Port Specifier (P1)Always set P1 to 000.Output Port Specifier (P2)The value of P2 determines where the scaled pulse frequency is output.P2Pulse output location(s)000 Synchronized pulse output 0 (output 01000)010 Synchronized pulse output 1 (output 01001)Scaling Factor (C)The 4-digit BCD value of C sets the scaling factor by which the input frequency ismultiplied.

The scaling factor can be set between 0001 and 1000 (1 to 1,000%).PC Setup Settings andGeneral OperationThe counter input mode for inputs 00000 and 00001 is set in bits 00 to 03 ofDM 6642.DM 6642 bits 00 to 03High-speed counter setting0Differential phase mode (5 kHz)1Pulse + direction input mode (20 kHz)2Up/down input mode (20 kHz)4Increment mode (20 kHz)Input Frequency RangeThe input frequency range for the synchronized pulse control is set in bits 08 to15 of DM 6642, as shown in the following table.DM 6642 bits 08 to 15Function of inputs 00000 and 0000102Use for synchronized pulse control (10 to 500 Hz)03Use for synchronized pulse control (20 Hz to 1 kHz).04Use for synchronized pulse control (300 Hz to 20 kHz).Synchronized pulse control cannot be executed unless inputs 00000 to 00003are set for synchronized pulse control in bits 08 to 15 (settings 02, 03, and 04).An error will occur and SR 25503 will be turned ON if SYNC(––) is executed butDM 6642 is not set for synchronized pulse control.467Section 7-28Special InstructionsThe high-speed counter function and pulse output functions cannot be used while synchronized pulse control is in operation.

An error will occur and SR 25503will be turned ON if a related pulse output instruction is executed to use one ofthese functions while synchronized pulse control is being performed.If the input frequency exceeds the maximum in the table above, the maximuminput frequency for that range will be used. If the input frequency falls below theminimum, an input frequency of 0 Hz will be used.Output Frequency RangeThe output frequency range is 10 Hz to 10 kHz. If the calculated output frequency (input frequency × scaling factor/100) exceeds 10 kHz, pulses will be output at10 kHz.

If the calculated output frequency falls below 10 Hz, pulses will not beoutput (0 Hz).Changing the Scaling Factor or Output PortThe scaling factor can be changed while synchronized pulse control is in operation by executing SYNC(––) again with a different scaling factor, but the outputport specifier cannot be changed during operation.Stopping the Synchronized Pulse Control OutputThe synchronized pulse output can be stopped by executing INI(61) with C=005or switching the PC to PROGRAM mode.FlagsER:A data area boundary is exceeded.Indirectly addressed DM word is non-existent.

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

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

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

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