Рук_п_Имп-4 (1031891), страница 13

Файл №1031891 Рук_п_Имп-4 (Раздаточный материал к курсовому проекту) 13 страницаРук_п_Имп-4 (1031891) страница 132017-12-22СтудИзба
Просмтор этого файла доступен только зарегистрированным пользователям. Но у нас супер быстрая регистрация: достаточно только электронной почты!

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

‘1’ means the Highalarm occurred, ‘0’ means it did not occur.l represents the status of Low alarm. ‘1’ means the Lowalarm occurred, ‘0’ means it did not occur.(cr) represents terminating character, carriage return(0Dh)6-88ADAM-5000Chapter 6$aaSiCjSExample$aaSiCjScommand: $03S0C1S(cr)response: !0301(cr)The command instructs the system at address 03h toreturn its alarm status for channel 1 of slot 0.The system responds that a High alarm has not occurredand that a Low alarm has occurred.ADAM-50006-89Command Set5024 Analog Output6.8 Analog Output Command Set6-90Command SyntaxCommand NameDescription$aaSiCjArrffConfigurationSets the output range, dataformat and slew rate for aspecified channel in aspecified analog outputmodule in a specifiedsystem.$aaSiCjBConfiguration StatusReturns the configurationparameters of a specifiedchannel in a specified analogoutput module of a specifiedsystem.#aaSiCj(data)Analog Data OutSends a digital value fromthe host computer to aspecified channel of aspecified slot in a specifiedADAM-5000 system foroutput as an analog signal.$aaSiCj4Start-Up OutputCurrent/VoltageConfigurationStores a default output valuein a specified channel.

Theoutput value will take effectupon startup or reset.$aaSiCj04 mA CalibrationDirects the specified channelto store parameters followinga calibration for 4 mA output$aaSiCj120 mA CalibrationDirects the specified channelto store parameters followinga calibration for 20 mAoutput$aaSiCj3hhTrim CalibrationTrims the specified channel aspecified number of units upor down$aaSiCj6Last Value ReadbackReturns either the last valuesent to the specified channelby a #aaSiCj(data)command, or start-up outputcurrent/voltage.ADAM-5000Chapter 6$aaSiCjArrffName$aaSiCjArrffConfigurationDescription Sets the output range, data format and slew rate for aspecified channel of a specified analog output module ina specified system.Syntax$aaSiCjArrff(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system you want toconfigure.SiCj identifies the I/O slot i (i : 0 to 3) and the channelj (j : 0 to 3) of the module you want to configure.A is I/O module configuration command.rr represents the 2-character hexadecimal code of theoutput range.

(See Appendix B)ff is a hexadecimal number that equals the 8-bit parameter representing the status of data format and slew rate.Bits 0 and 1 represent data format. Bits 2,3,4,5 representslew rate. The layout of the 8-bit parameter is shown inFigure 6-4. The other bits are not used and are set to 0.(cr) is the terminating character, carriage return (0Dh)Response!aa(cr) if the command is valid.?aa(cr) if an invalid operation was entered.There is no response if the module detects a syntax erroror communication error or if the specified address doesnot exist.! delimiter character indicating a valid command wasreceived.ADAM-50006-91Command Set5024 Analog Output$aaSiCjArrff$aaSiCjArrff? delimiter character indicating the command wasinvalid.aa (range 00-FF) represents the 2-character hexadecimaladdress of an ADAM-5000 system.(cr) is the terminating character, carriage return (0Dh)Examplecommand: $35S3C0A3110(cr)response: !35(cr)The analog output channel 0 in slot 3 of the ADAM5000 system at address 35h is configured to an outputrange 4 to 20mA, engineering units data format, and aslew rate of 1.0mA/sec.The response indicates that the command has beenreceived.Note:An analog output module requires a maximum of 20milliseconds to perform auto calibration and rangingafter it is reconfigured.

During this time span, themodule cannot be address to perform any otheractions.Figure 6-4 Data format of 8-bit parameters6-92ADAM-5000Chapter 6$aaSiCjBName$aaSiCjBConfiguration StatusDescription Returns the configuration parameters of a specifiedchannel in a specified analog output module of aspecified system.Syntax$aaSiCjB(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system you want tointerrogate.SiCj identifies the I/O slot i (i : 0 to 3) and the channel j (j: 0 to 3) you want to read.B is configuration status command.(cr) is the terminating character, carriage return (0Dh)Response!aarrff(cr) if the command is valid.?aa(cr) if an invalid operation was entered.There is no response if the module detects a syntax erroror communication error or if the specified address doesnot exist.! delimiter character indicating a valid command wasreceived.? delimiter character indicating the command wasinvalid.aa (range 00-FF) represents the 2-character hexadecimaladdress of an ADAM-5000 system.rr represents the 2-character hexadecimal code of theoutput range.ff is a hexadecimal number that equals the 8-bit parameter representing the status of data format and slew rate.ADAM-50006-93Command Set5024 Analog Output$aaSiCjB$aaSiCjBBits 0 and 1 represent data format.

Bits 2, 3, 4 and 5represent slew rate. The other bits are not used and areset to 0. (See Configuration command $aaSiCjArrff)(cr) is the terminating character, carriage return (0Dh)Examplecommand: $24S1C1Bresponse: !243210The analog output channel 1 in slot 1 of the ADAM5000 system at address 24h responds with an outputrange 0 to 10V, engineering units data format, and a slewrate of 1.0mA/sec.6-94ADAM-5000Chapter 6#aaSiCj(data)Name#aaSiCj(data)Analog Data OutDescription Sends a digital value from the host computer to aspecified channel of a specified slot in a specifiedADAM-5000 system for output as an analog signal.Upon receipt, the analog output module in the specifiedslot will output an analog signal corresponding to thedigital value received.Syntax#aaSiCj(data)(cr)# is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system.SiCj identifies the I/O slot i (i : 0 to 3) and the channelj (j : 0 to 3) of the analog output module that is to outputan analog signal.(data) is a digital value incoming to the module, whichcorresponds to the desired analog output value (alwaysin engineering units) to be output from the module.

Theanalog value output will depend on the module's rangeconfiguration. (See also Appendix B, Data Formats andI/O Ranges)(cr) is the terminating character, carriage return (0Dh)Response>(cr) if the command is valid.?aa(cr) if a value was sent that is out of range. Note thatwhen the analog output module receives such a value, itwill try to use a value that is close to the one received,but within the module‘s configured range.There is no response if the module detects a syntax erroror communication error or if the specified address doesnot exist.> is a delimiter character indicating a valid command wasreceived.ADAM-50006-95Command Set5024 Analog Output#aaSiCj(data)#aaSiCj(data)? delimiter character indicating the command wasinvalid.(cr) is the terminating character, carriage return (0Dh)Examplecommand: #33S1C115.000(cr)response: >(cr)The command instructs the module in slot 1 of theADAM-5000 system at address 33h to output a value of15 mA from it's channel 1.

The module should be ananalog output module with it's channel 1 configured fora range of 0-20 mA or 4-20 mA. If it is an analog outputmodule configured for the range 0-10 V, it's output valuewill be 10 V and the response will be ?33(cr).6-96ADAM-5000Chapter 6$aaSiCj4Name$aaSiCj4Start-Up Output Current/Voltage ConfigurationDescription Stores a default output value in a specified channel. Theoutput value will take effect upon startup or reset.Syntax$aaSiCj4(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system.SiCj identifies the I/O slot i (i : 0 to 3) and the channel j (j: 0 to 3) of the module you want to set.4 is the Start-Up Output Current/Voltage Configurationcommand.(cr) is the terminating character, carriage return (0Dh)Response!aa(cr) if the command is valid.?aa(cr) if an invalid operation was entered.There is no response if the module detects a syntax erroror communication error or if the specified address doesnot exist.! delimiter character indicating a valid command wasreceived.? delimiter character indicating the command wasinvalid.aa (range 00-FF) represents the 2-character hexadecimaladdress of an ADAM-5000 system.(cr) is the terminating character, carriage return (0Dh)ADAM-50006-97Command Set5024 Analog Output$aaSiCj4Example$aaSiCj4command: $0AS1C14(cr)response: !0A(cr)Presume the present output value of channel 1 of slot 1in the ADAM-5000 system at address 0Ah is 9.4 mA.The command tells the analog output module to storethe present output value in its non-volatile memory.When the system is powered up or reset, its defaultoutput value will be 9.4 mA.The response from the ADAM-5000 system at address0Ah indicates the command has been received.Note:6-98An analog output module requires a maximum of 6milliseconds after it receives a Startup OutputCurrent/Voltage Configuration command to let thesettings take effect.

During this interval, the modulecannot be addressed to perform any other actions.ADAM-5000Chapter 6$aaSiCj0Name$aaSiCj04 mA CalibrationDescription Directs the specified channel to store parametersfollowing a calibration for 4 mA outputSyntax$aaSiCj0(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system.SiCj identifies the I/O slot i (i : 0 to 3) and the channelj (j : 0 to 3) of the module you want to calibrate.0 is the 4 mA calibration command.(cr) is the terminating character, carriage return (0Dh)Response!aa(cr) if the command is valid.?aa(cr) if an invalid operation was entered.There is no response if the module detects a syntax erroror communication error or if the specified address doesnot exist.! delimiter character indicating a valid command wasreceived.? delimiter character indicating the command wasinvalid.aa (range 00-FF) represents the 2-character hexadecimaladdress of an ADAM-5000 system.(cr) is the terminating character, carriage return (0Dh)Note:ADAM-5000Before issuing the 4 mA Calibration command, theanalog output module should be trimmed to thecorrect value using the Trim Calibration command.Either a mA meter or a resistor and voltmeter should6-99Command Set$aaSiCj05024 Analog Output$aaSiCj0be connected to the module's output.

(See also theanalog output module's Trim Calibration command inChapter 4, Section 4.5, Analog Output ModuleCalibration for a detailed description.)6-100ADAM-5000Chapter 6$aaSiCj1Name$aaSiCj120 mA CalibrationDescription Directs the specified channel to store parametersfollowing a calibration for 20 mA outputSyntax$aaSiCj1(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system.SiCj identifies the I/O slot i (i : 0 to 3) and the channelj (j : 0 to 3) of the module you want to calibrate.1 is the 20 mA calibration command.(cr) is the terminating character, carriage return (0Dh)Response!aa(cr) if the command is valid.?aa(cr) if an invalid operation was entered.There is no response if the module detects a syntax erroror communication error or if the specified address doesnot exist.! delimiter character indicating a valid command wasreceived.? delimiter character indicating the command wasinvalid.aa (range 00-FF) represents the 2-character hexadecimaladdress of an ADAM-5000 system.(cr) is the terminating character, carriage return (0Dh)Note:ADAM-5000Before issuing the 20 mA Calibration command, theanalog output module should be trimmed to thecorrect value using the Trim Calibration command.Either a mA meter or a resistor and voltmeter should6-101Command Set$aaSiCj15024 Analog Output$aaSiCj1be connected to the module's output.

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

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

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

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