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

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

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

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

In that case, reset the value so that it is within the permissible range.Communications mode:Communications format:Transmission delay:Node number:Host LinkStandard settings(1 start bit, 7-bit data; 2 stop bits, even parity,9,600 bps)No00When no-protocol communications are used, TXD(48) is used to send data andRXD(47) to receive data. The maximum amount of data that can be either sent orreceived is 259 bytes, including the start/end code.• No Start or End Code:Transmission DataConfigurationData (256 bytes max.)• Only a Start Code:STData (256 bytes max.)• Only an End Code:Data (256 bytes max.)ED• Both an Start and End Code:STData (256 bytes max.)ED• End Code of CR, LF:Data (256 bytes max.)CRLFCRLF• Start Code 00-FF/End Code CR,LF:STNoteData (256 bytes max.)1.

The start and end codes are set in DM 6648 to DM 6649 and DM 6653 toDM 6654 of the PC Setup.249SectionSRM1(-V2) Communications Functions4-42. When there are several start and end codes, the first part of each will be effective.3. When the end code duplicates the transmission data and the transmission isstopped part way through, use CR or LF as the end code.4. The start and end codes are not stored.When sending data from the SRM1(-V2), check that the Transmission EnableFlag is ON for executing the TXD(48) instruction. The Transmission Enable Flagwill turn OFF while the data is being transmitted and will turn ON again whentransmission is complete.Transmission FlagsAfter the SRM1(-V2) has received data, the Receive Enable Flag turns ON.When the RXD instruction is executed, the data received will be written to thespecified words and the Reception Complete Flag will turn OFF.FlagPeripheral portRS-232C portTransmission Enable FlagAR 0813AR 0805Reception Complete FlagAR 0814AR 0806Note The timing from data reception starting to completion for the SRM1(-V2) is asindicated below.Reception Start:Without start code:With start code:Normal reception statusAfter start code is received.Reception Complete:When either the end code, the specified no.

of bytes, or 256 bytes are received.Program ExampleThe following program example is for no-protocol communication conductedthrough a RS-232C port using TXD(48) and RXD(47) instructions.If AR 0805 (Transmission Enable Flag) is ON when 00100 is ON, then data fromDM0100 to DM0104 is transmitted from higher to lower values.

When AR 0806(Reception Enable Flag) turns ON, 256 bytes of received data are read and written to DM 0200 from higher to lower values.00100DIFU(13)No-protocol communications start0010100100AR0805@TXDDM0100#0000#0010First word holding send data.Using the RS-232C port data isstored from higher to lower values10 bytes transmittedAR0806@RXDDM0200#0000256First word to store receive data.Using the RS-232C port data isstored from higher to lower values256 bytes transmitted250SectionSRM1(-V2) Communications Functions4-44-4-3 One-to-one NT Link CommunicationsUsing the 1:1 NT Link, the SRM1(-V2) PC can be connected to the Programmable Terminal (NT Link Interface.) The RS-232C port can be used for the 1:1NT Link.SRM1OMRON Programmable TerminalThe 1:1 NT Link is possible only with the SRM1-C02-V1/-V2 PCs, which have anRS-232C port.PC Setup SettingsWordBitDM 6645 00 to 03The settings relating to 1:1 NT Link PC communications must be set as shown inthe following table.FunctionSettingsettings1Port00: Standard (1 start bit, 7-bit data, 2 stop bits, even parity, 9,600 bps)01: Settings in DM 664600 or 0104 to 07CTS control settings0: Disable1: Set0 or 108 to 11When using a 1:1 PC Link: Sets the link words for 1:1 PC Link.0: LR 00 to LR 15Not 0: DisableAnyWhen using a 1:N NT Link: Sets the maximum PT node number.1 to 712 to 15The 1:N NT Link is supported by SRM1-C02-V2 only.Communications mode10: Host Link; 1: No-protocol; 2: 1:1 PC Link Slave; 3: 1:1 PC Link Master; 4: 1:1 NTLink; 5: 1:N NT Link4The 1:N NT Link is supported by SRM1-C02-V2 only.Note1.

If an improper setting is used, a non-fatal error will occur, AR 1302 will beturned ON, and the default setting (0 or 00) will be used.2. For information on the NT Link settings for another OMRON PC, refer to thatPC’s Operation Manual.3. If an out-of-range value is set, the following communications conditions willresult. In that case, reset the value so that it is within the permissible range.Communications mode:Host LinkCommunications format:Standard settings(1 start bit, 7-bit data; 2 stop bits, even parity,9,600 bps)Transmission delay:NoNode number:00251SectionSRM1(-V2) Communications Functions4-44-4-4 One-to-N NT Link CommunicationsThe 1:N NT Link allows an SRM1(-V2) PC to be connected to as many as 8 OMRON Programmable Terminals (PTs) and direct access provides high-speedcommunications.

The 1:N NT Link can be used with the RS-232C port.SRM1OMRON Programmable TerminalThe 1:N NT Link is possible only with the SRM1-C02-V2 PCs, which have anRS-232C port.Cable ConnectionsRefer to the SRM1 Master Control Units Operation Manual for information oncable connections in a 1:N NT Link.PC Setup SettingsWhen the RS-232C port is used for a 1:N NT Link, make the following PC Setupsettings from a Programming Device.WordBitDM 6645 00 to 03FunctionSettingsettings1Port00: Standard (1 start bit, 7-bit data, 2 stop bits, even parity, 9,600 bps)01: Settings in DM 664600 or 0104 to 07CTS control settings0: Disable1: Set0 or 108 to 11When using a 1:1 PC link: Sets the link words for 1:1 PC Link.0: LR 00 to LR 15Not 0: Disable1 to 7When using a 1:N NT Link: Sets the maximum PT node number.1 to 712 to 15The 1:N NT Link is supported by SRM1-C02-V2 only.Communications mode10: Host Link; 1: No-protocol; 2: 1:1 PC Link Slave; 3: 1:1 PC Link Master; 4: 1:1 NTLink; 5: 1:N NT Link5The 1:N NT Link is supported by SRM1-C02-V2 only.Note1.

If an improper setting is used, a non-fatal error will occur, AR 1302 will beturned ON, and the default setting (0 or 00) will be used.2. For information on 1:N NT Link settings for OMRON PTs, refer to the PT’sOperation Manual.3. If an out-of-range value is set, the following communications conditions willresult. In that case, reset the value so that it is within the permissible range.252Communications mode:Host LinkCommunications format:Standard settings(1 start bit, 7-bit data; 2 stop bits, even parity,9,600 bps)Transmission delay:NoNode number:00SectionSRM1(-V2) Communications Functions4-44-4-5 One-to-one PC Link CommunicationsIn a 1:1 PC Link, an SRM1 is linked to another SRM1, CPM1, CPM1A, CPM2A,CPM2C, CQM1, C200HS, or C200HX/HG/HE PC through a standard RS-232Ccable.

One of the PCs will serve as the master and the other as the slave. The 1:1PC Link can connect up to 256 bits (LR 0000 to LR 1515) in the two PCs.One-to-one SRM1(-V2)PC LinksThe following diagram shows a 1:1 PC Link between two SRM1(-V2)s.SRM1SRM1RS-232C PortRS-232C PortThe words used for the 1:1 PC Link are as shown below.LR00Write dataRead dataMasterSlaveArea for writingLR07LR08LR00Read dataArea for readingArea for readingArea for writingLR15LR07LR08Write dataLR15Limitations of 1:1 PC Linkswith a SRM1(-V2)A 1:1 PC Link is possible only with the SRM1-C02-V1/V2 PCs, which areequipped with an RS-232C port.Only the 16 LR words from LR 00 to LR 15 can be linked in the SRM1, so use onlythose 16 words in the CQM1 or C200HS when making a 1:1 PC Link with one ofthose PCs. A 1:1 PC Link cannot be made to an SRM1 PC using LR 16 throughLR 63 in the CQM1 or C200HS.Cable ConnectionsRefer to the SRM1 Master Control Units Operation Manual for information oncable connections in a 1:1 PC Link.PC Setup SettingsWhen an SRM1(-V2) is used in a 1:1 PC Link, make the following PC Setup settings from a Programming Device.WordBitDM 6645 00 to 03FunctionPort settings100: Standard (1 start bit, 7-bit data, 2 stop bits, even parity, 9,600 bps)01: Settings in DM 6651Setting Setting(Master) (Slave)00 or 01 00 or 0104 to 07CTS Control settings0: Disable1: Set0008 to 11When using a 1:1 PC Link: Sets the link words for 1:1 PC Link.0: LR 00 to LR 15Not 0: Disable0032When using a 1:N NT Link: Sets the maximum PT node number.1 to 712 to 15Communications mode10: Host Link; 1: No-protocol; 2: 1:1 PC Link Slave; 3: 1:1 PC Link Master; 4:1:1 NT Link; 5: 1:N NT LinkNote1.

If an improper setting is used, a non-fatal error will occur, AR 1302 will beturned ON, and the default setting (0 or 00) will be used.253SectionHost Link Commands4-52. For information on the 1:1 PC Link settings for another OMRON PC, refer tothat PC’s Operation Manual.3. If an out-of-range value is set, the following communications conditions willresult. In that case, reset the value so that it is within the permissible range.Communications mode:Host LinkCommunications format: Standard settings(1 start bit, 7-bit data; 2 stop bits, even parity,9,600 bps)Transmission delay:NoNode number:00Example ProgramThis example shows ladder programs that copy the status of IR 000 in eachSRM1 to IR 200 in the other SRM1.Program in the MasterProgram in the Slave25313 (Always ON)25313 (Always ON)MOV(21)MOV(21)000000LR00LR08MOV(21)MOV(21)LR08LR00200200LR00IR 000LR00WriteIR 200ReadWriting areaLR07LR08Reading areaReading areaWriting areaLR154-5LR07LR08ReadIR 200WriteIR 000LR15Host Link CommandsThis section explains the commands that can be issued from the host computerto the PC.4-5-1 IR/SR AREA READ – RRReads the contents of the specified number of IR and SR words, starting fromthe specified word.Command Format@x 101 x 100Node no.RRHeadercodex 103 x 102 x 101 x 100 x 103 x 102 x 101 x 100Beginning word*No.

of words(0000 to 0256)FCS↵TerminatorNote *Beginning word: 0000 to 0049 and 0200 to 0255 in CPM2A/CPM2C PCs, 0000to 0019 and 0200 to 0255 in CPM1/CPM1A/SRM1(-V2) PCs.(A response of “0000” will be returned for non-existent IR and SR words.)Response Format@x 101 x 100Node no.An end code of 00 indicates normal completion.RRHeadercodex 161 x 160 x 163 x 162 x 161 x 160End codeRead data (1 word)Read data (for number of words read)254FCS↵TerminatorSectionHost Link CommandsNoteParameters4-51.

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

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

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

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