Apollo instruction manual Sending Commands to the IMY, Command String Examples

Page 30

SENDING COMMANDS TO THE IMY

When sending commands to the unit a command string must be constructed. The command string may consist of command codes, value identifiers, and numerical data. Below is a table outlining the codes the indicator will recognize.

COMMANDFUNCTIONS

Ttransmits the requested information specified by the identifier (A-I, K, and L)

Vchange a value specified by the identifier (C-F, K, and L)

N address a particular indicator in a multiple unit loop (0-99)

R reset a value specified by the identifier (B-D, G, H, I, and J)

P print per programmable print options (A-I)

VALUE

IDENTIFIERS

SERIAL MNEMONICS

A

temperature

INP

B

integrator/totalizer

TOT

C

alarm #1

AL1

D

alarm #2

AL2

E

hysteresis #1

HS1

F

hysteresis #2

HS2

G

peak reading

PEK

H

valley reading

VAL

I

zero offset

OFS

J

offset input

 

K

analog low

ANL

L

analog high

ANH

Note: RJ - offset the input (re-zeros). When the input is offset (via front panel or “RJ”) the amount is stored in the offset reading (I). Ex. When an offset is performed, the display reads “5.0”, the offset value will be “-00005.0” (and the display will show 0.0).

A command string is constructed by using the above commands and identifiers along with any data values that are required. The indicator will accept “+” or “-”in front of the data value. Numbers without “+” are understood to be positive. Leading zeros can be eliminated and both lower and upper case characters are accepted. The address command is used to allow a command to be directed to a specific unit on the loop. If the indicator is assigned an address of “0”, transmission of the address command is not required. This is done where only one indicator is in the loop.

-28-

The command string is constructed in a specific logical sequence. The indicator will reject command strings that do not conform. Only one operation can be performed per command string. Below is a description of how to construct a command string.

1.If the indicator has an address other than zero, the first two characters of the string must consist of the address command (N) followed by the unit address number (0-99). If the indicator has an address of 0, the address command is optional.

2.The next two characters in the string are the actual command the indicator must perform and the identifier on which it operates. Command P-print, Value I-zero offset and J-offset input, have implied operators and need no additional characters.

3.If the change value command is being used (V), the next characters in the string after the value identifier, are the numerical data. When sending numerical data, such as change an alarm value, the correct number of digits to the right, must be included. As an example, to change an alarm value from 150.2 to 50.0. Sending 50 would cause the indicator to see 5.0 and change the alarm value accordingly.

4.All commands must be terminated by an asterisk(*). The indicator will not respond to any other code. Carriage return and line feed are not valid terminators and should be suppressed with the character “;”, if using a BASIC print statement (ex. Print “N9TA*”;).

COMMAND STRING EXAMPLES

Indicator with address 3, transmit temperature reading.

N3TA*

Indicator with address 0, change alarm #1 to 150.

VC150*

Indicator with address 1, reset totalizer.

N1RB*

Indicator with address 99, print the print options.

N99P*

Indicator with address 0, zero the offset value.

RI*

Image 30
Contents Apollo Intelligent Meter Series Introduction Table of Contents Page Safety Information Safety SummaryDefinition of Terms General Description Theory of OperationBlock Diagram Programming and Operating the IMY Programming the IMYDisplay Module #2 Program Temperature Display Offset and Slope Reset Latched Alarms Display Alarm ValuesEnter Alarm Values Reset PEAK/VALLEY Memory BufferTemperature Offset Value Enter Offset ValueModule #4 Program Digital Filter and Remote Input Program Digital FilteringProgram Function of E1-CON and Optional E2-CON Cont’d Module #5 Program INTEGRATOR/TOTALIZER Program Decimal Point Position for the INTEGRATOR/TOTALIZERProgram INTEGRATOR/TOTALIZER Time Base Module #6 Program ALARM/SETPOINT Alarm #2 Assignment to Input or INTEGRATOR/ Totalizer Program Value for Alarm #2Alarm #2 High or LOW Acting Print Request Function Baud RateUnit Address Number Full or Abbreviated TransmissionAnalog Output LO Display Value Module #8 Program RE-TRANSMITTED Analog OutputAnalog Output Source Analog Output HI Display ValueEnter Zero Reference Module #9 Service OperationsEnter Access Code Apply Precision ResistanceOperating the IMY Quick ProgrammingFactory Configuration SlopeProgramming Example Temperature Monitoring Example Offset and Slope Display Temperature INTEGRATOR/TOTALIZERPEAK/VALLEY INTEGRATOR/TOTALIZER Example Basic SET-UPINTEGRATOR/TOTALIZER SET-UP 125 x 827 Alarms Optional Alarm Timing DiagramsGeneral Description Communication FormatSending Commands to the IMY Command String ExamplesTiming Diagrams Receiving Data from the IMY Current Loop InstallationWiring Connections Serial Terminal DescriptionsConnecting to AN RLC Printer Serial Communications ExamplesProcess Controlling System RE-TRANSMITTED Analog Output Optional Analog Output Calibration To 20 mA CalibrationAppendix a Installation & Connections Installation EnvironmentSelect AC Power 115/230 VAC EMC Installation Guidelines Wiring Connections Power WiringAppendix B Specifications and Dimensions Open Thermistor Detection Display UlululTo 20 mA Certifications and Compliances Safety Appendix C Troubleshooting Guide Problem Possible Cause RemediesAppendix D Programmable Functions Decimal Point PositonAppendix D Programmable Functions Cont’d Appendix E Ordering Information E2-CONLimited Warranty IMY/IM-A 3/02 Drawing NO. LP0311