Рук_п_16ДуДк (1031887), страница 9

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

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

A user first issues an RTD self calibrationcommand, and then issues zero and span calibrationcommands.$aaSi2(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system which contains themodule to be calibrated.Si identifies the desired slot i (i:0 to 3) containing themodule to be calibrated.2 represents the self 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).6-36ADAM-5000Chapter 66.5Analog Input Command SetCommand SyntaxCommand NameDescription$aaSiArrffConfigurationSets slot index, input range,data format and integration timefor a specified analog inputmodule in a specified system.$aaSiBConfiguration StatusReturns the configurationparameters for a specifiedanalog input module of aspecified system.$aaSi5mmEnable/DisableChannels formultiplexingEnables/Disables multiplexingfor separate channels of thespecified input module$aaSi6Read Channels Status Asks a specified input moduleto return the status of allchannels#aaSiAll Analog Data InReturns the input value of allchannels for a specified analoginput module of a specifiedsystem in engineering units only.#aaSiCjSpecified AnalogData InReturns the input value of aspecified channel for a specifiedanalog input module of aspecified system in engineeringunits only$aaSiERInitialize EEPROMDataInitializes all EEPROM data in aspecified analog input module totheir default values.$aaSiØSpan CalibrationCalibrates a specified analoginput module to correct for gainerrors$aaSi1Zero CalibrationCalibrates a specified analoginput module to correct for offseterrors$aaSi3CJC StatusReturns the value of the CJC(Cold Junction Compensation)sensor for a specified analoginput module$aaSi9shhhhCJC Zero CalibrationCalibrates a CJC sensor foroffset errorsNote:ADAM-5000See pages 71-89 for Analog Input Alarm CommandSet.6-37Command Set5017/5018 Analog Input$aaSiArrffName$aaSiArrffConfigurationDescription Sets slot index, input range, data format and integrationtime for a specified analog input module in a specifiedsystem.Syntax$aaSiArrff(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system you want toconfigure.Si identifies the I/O slot you want to configure.A is I/O module configuration command.rr represents the 2-character hexadecimal code of theinput range.

(See Appendix B)ff is a hexadecimal number that equals the 8-bit parameter representing data format. Bits 0 and 1 represent dataformat. Bit 7 represents integration time. The layout ofthe 8-bit parameter is shown in Figure 6-3. The other bitsare not used and are set to 0.(cr) is the terminating character, carriage return (0Dh)% $ # " !  Not usedData Format00: Engineering unitsIntegration Time0: 50 ms (Operation under 60 Hz power)1: 60 ms (Operation under 50 Hz power)Figure 6-3 Data format for 8-bit parameters6-38ADAM-5000Chapter 6$aaSiArrffResponse$aaSiArrff!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)Examplecommand: $35S3A0000(cr)response: !35(cr)The analog input module in slot 3 of the ADAM-5000system at address 35h is configured to an input range±15mV, engineering units data format, and integrationtime 50ms (60Hz).The response indicates that the command has beenreceived.Note:ADAM-5000An analog input module requires a maximum of 7seconds to perform auto calibration and ranging afterit is reconfigured.

During this time span, the modulecannot be addressed to perform any other actions.6-39Command Set5017/5018 Analog Input$aaSiBName$aaSiBConfiguration StatusDescription Returns the configuration status parameters for aspecified analog input module of a specified system.Syntax$aaSiB(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system you want tointerrogate.Si identifies the I/O slot 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 theinput range.ff is a hexadecimal number that equals the 8-bit parameter representing data format.

Bit 0 and 1 represent dataformat. Bit 7 represents integration time. (See Configuration Command $aaSiArrff).6-40ADAM-5000Chapter 6$aaSiB$aaSiB(cr) is the terminating character, carriage return (0Dh)Examplecommand: $26S1Bresponse: !260000The ADAM-5018 analog input module in slot 1 of theADAM-5000 system at address 26h responds with aninput range ±15mV, engineering units data format, andintegration time 50ms (60Hz).ADAM-50006-41Command Set5017/5018 Analog Input$aaSi5mmName$aaSi5mmEnable/Disable Channels for multiplexingDescription Enables/Disables multiplexing for separate channels ofthe specified input moduleSyntax$aaSi5mm(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system.Si identifies the I/O slot of the system.5 identifies the enable/disable channels command.mm are two hexadecimal values.

Each value is interpreted as 4 bits. The first 4-bit value represents the status ofchannels 4-7, the second 4 bit value represents thestatus of channels 0-3. A value of 0 means the channelis disabled, while a value of 1 means the channel isenabled. (See the Read Channel Status Command$aaSi6)Note:Bit 7 cannot be enabled in the ADAM-5018 since themodule is physically limited to 7 channels.(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.6-42ADAM-5000Chapter 6$aaSi5mm$aaSi5mmaa (range 00-FF) represents the 2-character hexadecimaladdress of an ADAM-5000 system.(cr) is the terminating character, carriage return (0Dh)Examplecommand: $00S1581(cr)response: !00(cr)The command enables/disables channels of the analoginput module in slot 1 of the system at address 00h.Hexadecimal 8 equals binary 1000, which enableschannel 7 and disables channels 4, 5 and 6.

Hexadecimal1 equals binary 0001, which enables channel 0 anddisables channels 1, 2 and 3.ADAM-50006-43Command Set5017/5018 Analog Input$aaSi6Name$aaSi6Read Channels StatusDescription Asks a specified input module to return the status of allchannelsSyntax$aaSi6(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system you want tointerrogate.Si identifies the I/O slot of the system you want to readchannels status.

The channel status defines whether achannel is enabled or disabled.6 is the read channels status command.(cr) is the terminating character, carriage return (0Dh)Response!aamm(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.mm are two hexadecimal values. Each value is interpreted as 4 bits.

The first 4-bit value represents the status ofchannels 4-7, the second 4 bits represents the status of6-44ADAM-5000Chapter 6$aaSi6$aaSi6channels 0-3. A value of 0 means the channel isdisabled, while a value of 1 means the channel isenabled.(cr) is the terminating character, carriage return (0Dh)Examplecommand: $02S16(cr)response: !02FF(cr)The command asks the analog input module in slot 1 ofthe system at address 02h to send the status of its inputchannels.

The analog input module responds that all itsmultiplex channels are enable (FF equals 1111 and 1111).ADAM-50006-45Command Set5017/5018 Analog Input#aaSiName#aaSiAll Analog Data InDescription Returns the input value of all channels for a specifiedanalog input module of a specified system in engineering unit only.Syntax#aaSi(cr)# is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system you want tointerrogate.Si is the I/O slot of ADAM-5000 system you want toread.(cr) is the terminating character, carriage return (0Dh)Response>(data) (data) (data) (data) (data) (data) (data) (data) (cr) ifthe 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.> is a delimiter character indicating a valid command wasreceived.? delimiter character indicating the command wasinvalid.(data) is the input value in engineering units of a channelin the interrogated module of the specified system.

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

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

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

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