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

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

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

(See also theanalog output module's Trim Calibration command inChapter 4, Section 4.5, Analog Output ModuleCalibration for a detailed description.)6-102ADAM-5000Chapter 6$aaSiCj3hhName$aaSiCj3hhTrim CalibrationDescription Trims the specified channel a specified number of unitsup or downSyntax$aaSiCj3hh(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.3 is the trim calibration command.hh is the 2-character twos complement hexadecimalvalue that represents the number of counts by which toincrease or decrease the output current.

Each countequals approximately 1.5µA. Values range from 00 to 5Fand from A1 to FF (hexadecimal), where 00 represents 0counts, 5F represents +95 counts, A1 represents -95counts and FF represents -1 counts. Negative valuesdecrease and positive numbers increase the outputcurrent according to the number of counts.(cr) is the terminating character, carriage return (0Dh)Response!aa(cr) if the command is valid.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.aa (range 00-FF) represents the 2-character hexadecimaladdress of an ADAM-5000 system.ADAM-50006-103Command Set5024 Analog Output$aaSiCj3hh$aaSiCj3hh(cr) is the terminating character, carriage return (0Dh)Examplecommand: $07S1C2314(cr)response: !07(cr)The command tells channel 2 of the analog outputmodule in slot 1 of the ADAM-5000 system at address07h to increase its output value by 20 (14h) countswhich is approximately 30 µA.The analog output module confirms the increase.Note:6-104In order to perform a Trim Calibration, either a mAmeter or a resistor and voltmeter should be connected to the module's output prior to calibration.

(Seealso the 4 mA and 20 mA Calibration commands ofthe analog output module's command set. Refer alsoto Chapter 4, Section 4.5, Analog Output Calibrationfor a detailed description.)ADAM-5000Chapter 6$aaSiCj6Name$aaSiCj6Last Value ReadbackDescription Returns either the last value sent to the specifiedchannel by a #aaSiCj(data) command, or the start-upoutput current/voltage.Syntax$aaSiCj6(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) for the module you want to return a priorvalue.6 is the last value readback command.(cr) is the terminating character, carriage return (0Dh)Response!aa(data)(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.(data) is the value that is returned by the analog outputmodule.

The format of the data depends on the module‘sconfigurated data format.(cr) is the terminating character, carriage return (0Dh)ADAM-50006-105Command Set5024 Analog Output$aaSiCj6Example$aaSiCj6command: $0AS2C16(cr)response: !0A03.000(cr)The command tells channel 1 of the analog outputmodule in slot 2 of the ADAM-5000 system at address0Ah to return the last output value it received from anAnalog Data Out command, or its start-up outputcurrent /voltage.The analog output module returns the value 3.000 mA(this assumes that the module was configured for therange 0-20 mA).6-106ADAM-5000Chapter 66.9 Digital Input/Output Command SetCommand SyntaxCommand NameDescription$aaSi6Digital Data InReturns the values of digitalI/O channels for a specifiedmodule#aaSiBB(data)Digital Data OutSets output values of a singledigital output channel or of alldigital output channelssimultaneously for aspecified module.$aaSiMRead ChannelMasking StatusAsks the specified module toreturn the masking status ofall digital output channels.ADAM-50006-107Command Set5050/5051/5052/5055/50565060/5068/5069 Digital I/O$aaSi6NameDigital Data InDescription This command requests that the specified module inan ADAM-5000 system at address aa return the statusof its digital input channels and a read back value of itsdigital output channels.Syntax$aaSi6(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 you want to read.6 is the Digital Data In command.(cr) is the terminating character, carriage return (0Dh)Response !aa(datainput)(datainput)00(cr) if thecommand is valid.(ADAM-5051)!aa(datainput)(dataoutput)00(cr) if the command is valid.(ADAM-5055S)!aa(dataoutput)(dataoutput)00(cr) if the command isvalid.(ADAM-5056)!aa(dataoutput)0000(cr) if the command is valid.(ADAM-5060, ADAM-5068, ADAM-5069)?aa(cr) if an invalid operation was entered.6-108ADAM-5000Chapter 6There is no response if the module detects a syntax erroror communication error or if the specified addressdoes not exist.Note: ! delimiter character indicating a valid commandwas received.? delimiter character indicating the command wasinvalid.aa (range 00-FF) represents the 2-character hexadecimaladdress of an ADAM-5000 system.(datainput) a 2-character hexadecimal value representingthe input values of the digital input module.(dataoutput) a 2-character hexadecimal value which is theread back of a digital output channel or relay.(cr) is the terminating character, carriage return (0Dh)Examplecommand: $33S26(cr)response: !33112200(cr)The command asks the digital input module in slot 2 ofthe ADAM-5000 system at address 33h to return thevalues of all of its channels.The first 2-character portion of the response indicatesthe address of the ADAM-5000 system.The second 2-character (high byte) portion of theresponse, value 11h (00010001), indicates that digitalinput channels 8 and 12 are ON, channels 9, 10, 11, 13, 14and 15 are OFF.The third 2-character (low byte) portion of the response,value 22h (00100010), indicates that digital inputchannels 1 and 5 are ON, and channels 0, 2, 3, 4, 6 and 7are OFF.ADAM-50006-109Command Set5050/5051/5052/5055/50565060/5068/5069 Digital I/O$aaSiBB(data)NameDigital Data OutDescriptionThis command either sets a single digital outputchannel or sets all digital output channelsSyntax#aaSiBB(data)(cr)# is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system.Si identifies the slot (i:0 to 7) of the ADAM-5000 systemwhich contains the module whose output values youwant to set.BB is used to indicate which channel(s) either single orall will be set.- Writing to all channels (write a byte): both charactersshould be equal to zero (BB=00).- Writing to a single channel (write a bit): first characteris 1, second character indicates channel number whichcan range from 0h to Fh.

The ADAM-5056 can rangefrom 0h to Fh, and the ADAM-5055S/5060/5068/5069can range from 0h to 7h).(data) is the hexadecimal representation of the digitaloutput value(s).- When writing to a single channel (bit), the firstcharacter is always 0. The value of the second characteris either 0 or 1.- When writing to all channels (byte), the 2 or 4-characters are significant. The digital equivalent of these6-110ADAM-5000Chapter 6hexadecimal characters represent the channels’ status.Note that the numbers of channels on the ADAM-5056and ADAM-5055S/5060/5068/5069 differ.- A 4-character hexadecimal value is used to set thechannels, from 15 thru 0, of the ADAM-5056.- A 2-character hexadecimal value is used to set thechannels, from 5 thru 0, of the ADAM-5060. Bits 6 and 7always default to 0 in the ADAM-5060.- A 2 character hexadecimal value is used to set thechannels, from 7 thru 0, of theADAM-5055S/5068/5069.Response>(cr) if the command was valid.?aa(cr) if an invalid command has been issued.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 that is responding.(cr) is the terminating character, carriage return (0Dh)Examplecommand: #15S11201(cr)response: >(cr)An output bit with value 1 is sent to channel 2 of adigital output module in slot 1 of the ADAM-5000system at address 15h - either ADAM-5056 or ADAM5055S/5060/5068/5069.

Channel 2 of the digital outputmodule is set to ON.ADAM-50006-111Command5050/5051/5052/5055/50565060/5068/5069 Digital I/Ocommand: #14S1001234(cr)response: >(cr)An output byte with value 1234h (0001001000110100) issent to the digital output module (ADAM-5056) in slot 1of the ADAM-5000 system at address 14h. Channels 2,4, 5, 9 and 12 will be set to ON, and all other channels areset to OFF.command: #15S0003A(cr)response: >(cr)An output byte with value 3Ah (00111011) is send to thedigital output module (ADAM-5060) in slot 0 of theADAM-5000 system at address 15h.

Channels 0, 1, 3, 4and 5 will be set to ON while channel 2 is set to OFF. Bits6 and 7 are not used and always default to 0.Note:6-112If any channel of the digital output module is configured as the output for an analog input alarm, itcannot be reconfigured via digital output commands.Channels used for analog input alarms always have ahigher priority.ADAM-5000Chapter 6$aaSiMNameRead Channel Masking StatusDescription Ask the specified module to return the masking status ofdigital output channelsSyntax$aaSiM(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 you want to read.M is Channel Masking Status command.(cr) is the terminating character, carriage return (0Dh)Response!aa(data)(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 that is responding.(data) is the hexadecimal value representing the status ofall digital output channels.

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

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

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

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