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

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

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

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

The subroutine number can be 0000 to 0049 and the subroutine will be executed as long as the counter’s PV is within the specified range. A value ofFFFF indicates that no subroutine is to be executed.3. Since the comparison is usually performed just once each cycle, be sure totake the cycle time into account when the upper and lower limits representtime values.4. A subroutine number can be used more than once in the table.ER:The comparison table exceeds the data area boundary, or there is anerror in the comparison table settings.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 C is not between 000 and 003.There is a CTBL(63) instruction using a different comparison format inthe subroutine called by another CTBL(63) instruction.A CTBL(63) instruction using a different comparison format is executedduring comparison.CTBL(63) 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.368Section 7-15Timer and Counter InstructionsTarget Value Comparison Errors:The number of target values (in TB) is not between 0001 and 0016.A target value is not between F838 8608 and 0838 8607 (differentialphase mode, pulse + direction input mode, and up/down input mode).A target value is not between 0000 0000 and 1677 7215 or a subroutinenumber is not between 0000 and 0049 (increment mode).Range Comparison Errors:A range’s upper limit value is less than its lower limit value.A target value is not between F838 8608 and 0838 8607 (differentialphase mode, pulse + direction input mode, and up/down input mode).A target value is not between 0000 0000 and 1677 7215 or a subroutinenumber is not between 0000 and 0049 (increment mode).7-15-8 MODE CONTROL – INI(61)Ladder SymbolsOperand Data AreasP: Port specifierINI(61)@INI(61)PPCCP1P1000, 010, 100, 101, 102, 103C: Control data000 to 005P1: First PV wordIR, SR, AR, DM, HR, LR (or 000)This instruction is not supported by SRM1(-V2) PCs.LimitationsIn the CPM1/CPM1A PCs, P must be 000 and C must be 000 to 003.In CPM2A/CPM2C PCs, P must be 000, 010, 100, 101, 102, or 103 and C mustbe 000 to 005.P1 must be 000 unless C is 002 or 004.P1 and P1+1 must be in the same data area.If a DM address is used for P1, it must be read/write DM.DescriptionWhen the execution condition is OFF, INI(61) is not executed.

When the execution condition is ON, INI(61) is used to control high-speed counter operation andstop pulse output.The port specifier (P) specifies the high-speed counter or pulse output that willbe controlled.P000Function100*Specifies high-speed counter input (inputs 00000, 00001, and 00002),single-phase pulse output 0 with no acceleration/deceleration (output01000 or 01001), single-phase pulse output 0 with trapezoidal acceleration/deceleration (output 01000).Specifies single-phase pulse output 1 with no acceleration/deceleration(output 01001).Specifies interrupt input 0 in counter mode (input 00003).101*Specifies interrupt input 1 in counter mode (input 00004).102*Specifies interrupt input 2 in counter mode (input 00005).103*Specifies interrupt input 3 in counter mode (input 00006).010*Note *These settings can be used in CPM2A/CPM2C PCs only.369Section 7-15Timer and Counter InstructionsThe function of INI(61) is determined by the control data, C.CP1INI(61) function000000Starts CTBL(63) table comparison.001000Stops CTBL(63) table comparison.002New PV003000Changes PV of the high-speed counter or an interrupt input incounter mode.Stops pulse output.004*New PVChanges PV of the pulse output.005*000Stops synchronized pulse control output.Note *These settings can be used in CPM2A/CPM2C PCs only.Start or Stop Comparison(C=000 or C=001)If C is 000 or 001, INI(61) starts or stops comparison of the high-speed counter’sPV to the comparison table registered with CTBL(63).

An error will occur if thisfunction is executed without first registering a comparison table with CTBL(63).In general, @INI(61) should be used when C=000 because the instructionneeds to be executed only one time to start table comparison.Change PV(C=002)If C is 002, INI(61) changes the PV of the specified high-speed counter or interrupt input (counter mode).High-speed Counter PV (P=000)INI(61) changes the PV of the specified high-speed counter to the 8-digit BCDvalue in P1 and P1+1.The new PV can be F838 8608 to 0838 8607 in differential phase mode, pulse +direction input mode, or up/down input mode. (The hexadecimal “F” in the firstdigit acts as a minus sign.)The new PV can be 0000 0000 to 1677 7215 in increment mode.Interrupt Input PV (P=100 to 103)INI(61) changes the PV of the specified interrupt input (counter mode) to the4-digit hexadecimal value (0000 to FFFF) in P1.Stop Pulse Output(C=003)If C is 003, INI(61) stops the pulse output.Change PV(C=004)INI(61) changes the PV of the pulse output to the 8-digit BCD value in P1 andP1+1.

The PV cannot be changed while the pulse output is in progress.The new PV can be –16,777,215 to 16,777,215. Bit 15 of P1+1 acts as a sign bit;the number is negative if bit 15 is ON, positive if it is OFF.Stop Synchronized PulseControl Output (C=003)If C is 003, INI(61) stops the synchronized pulse control output.FlagsER:The port specifier and control data are incompatible.(For example: P=010 and C=000)There is an error in the operand settings or the specified PV is not withinthe acceptable range.The address specified for P1 or P1+1 exceeds the data area boundary.Indirectly addressed DM word is non-existent. (Content of *DM word isnot BCD, or the DM area boundary has been exceeded.)The specified function is incompatible with actual PC operation.

For example, do not set C=005 if synchronized pulse control is not being used.INI(61) is executed to change the PV of a pulse output (C=004) while thepulse output is operating.INI(61) 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.370Section 7-15Timer and Counter InstructionsINI(61) is executed in an interrupt subroutine while a pulse I/O or highspeed counter instruction is being executed in the main program.7-15-9 HIGH-SPEED COUNTER PV READ – PRV(62)Ladder SymbolsOperand Data AreasP: Port specifierPRV(62)@PRV(62)PPCCDD000, 010, 100, 101, 102, 103C: Control data000, 001, 002, or 003D: First destination wordIR, SR, AR, DM, HR, LRThis instruction is not supported by SRM1(-V2) PCs.LimitationsIn the CPM1/CPM1A PCs, P must be 000 and C must be 000 to 002.In CPM2A/CPM2C PCs, P must be 000, 010, 100, 101, 102, or 103 and C mustbe 000 to 003.D and D+1 must be in the same data area.If a DM address is used for D, it must be read/write DM.DescriptionWhen the execution condition is OFF, PRV(62) is not executed.

When theexecution condition is ON, PRV(62) controls the high-speed counter PV, pulseoutput PV, interrupt input (counter mode) PV, or input frequency for synchronized control as specified by P and C.The port specifier (P) specifies the high-speed counter or pulse output that willbe controlled.PFunction000Specifies high-speed counter input (inputs 00000, 00001, and 00002), input frequency for synchronized pulse control (inputs 00000, 00001, and00002), single-phase pulse output 0 with no acceleration/deceleration (outputs 01000 and 01001), single-phase pulse output 0 with trapezoidal acceleration/deceleration (output 01000), or synchronized pulse control output 0 (output 01000/01001).010*100*Specifies single-phase pulse output 1 with no acceleration/deceleration(output 01001) or synchronized pulse control output 1 (output 01001).Specifies interrupt input 0 in counter mode (input 00003).101*Specifies interrupt input 1 in counter mode (input 00004).102*Specifies interrupt input 2 in counter mode (input 00005).103*Specifies interrupt input 3 in counter mode (input 00006).Note *These settings can be used in CPM2A/CPM2C PCs only.The control data, C, determines which type of data will be accessed.CFunctionDestination word(s)000Reads the PV of the high-speed counter or interruptinput (counter mode) or the input frequency of thesynchronized pulse control.D and D+1001D002Reads the status of the high-speed counter or pulseoutput.Reads the results of range comparison.003*Reads the PV of the pulse output.D and D+1DNote *This setting can be used in CPM2A/CPM2C PCs only.371Section 7-15Timer and Counter InstructionsRead PV (C=000)If C is 000, PRV(62) reads the PV of the specified high-speed counter or interruptinput (counter mode).High-speed Counter PV or Input Frequency (P=000)When the output is used for a high-speed counter, PRV(62) reads the PV of thespecified high-speed counter and writes the 8-digit BCD value in D and D+1.(The leftmost 4 digits are written to D+1.)The PV can be F838 8608 to 0838 8607 in differential phase mode, pulse + direction input mode, or up/down input mode.

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

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

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

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