Home » Quick Start Guides » Remote Control
All commands are executed when a valid End of LIne Character (EOL) is received.
Valid End of Line Characters are:
Matrixsize command sets the matrix size. The syntax for this command is:
matrixsize mtx# #mods #rlys
mtx#: For mainframes this is 0, for Mesa expansion systems this is the matrix number for the expansion chassis.
#mods: The maximum number of modules for the chassis.
#rlys: The maximum number of relays per module.
Example: matrixsize 0 16 8 Sets the # of modules to 16 and the maximum number of relays per module to 8 for a mainframe chassis (mtx is 0).
Typing matrixsize and hitting the enter key will return the current settings and chassis type(for Mesa systems all of the expansion chassis settings will be returned as a list).
Answerback: Returns a 1 or 0 when a command is completed successfully or an error code when there is a problem.Verbose: Verbose causes the system to return more specific information when you request status or read answerback characters. It is sometimes helpful when troubleshooting but it slows the interface down a lot. While there may occasionally be a good reason to turn on Verbose during a Hyperterm session, it is almost never used in a programmatic interface. All of the same information can be generated in code based on the non-verbose responses without slowing down the RS232 interface.
L,U,X – Latch, Unlatch, Multiplex Commands
Syntax: Cmd Switch
Cmd Module, Switch
Cmd Matrix, Module, Switch
The specified switchpoint is operated on. Note:For mainframe systems the matrix number will be 0.
(Cmd = ‘L’, ‘U’ or ‘X’)
L = Latch = Turn switch ON Closes the specified point, all others unaffected.
U = Unlatch = Turn switch OFF Opens the specified point, all others are unaffected.
X = Multiplex = Clear + Latch Opens all points, then Latches the specified point.
E.g. “U0 2 3” Matrix 0, Module 2, Switch 3 is opened. (OFF)
“L0 4 3” Matrix 0, Module 4, Switch 3 is closed. (ON)
“L0 1” Module 0, Switch 1 is closed. (ON)
“L2 13 7” Matrix 2, Module 13, Switch 7 is closed. (ON)
“X0 3 0” Clear all switch points ( turn them all OFF ) then Latch Matrix 0, Module 3, Switch 0.
Note that the X command cannot be used if you need more than one switch on at a time. There is not a X command that only works on a single module.
If a single integer value is sent, the control module assumes it is a switch value and defaults to the last module value sent. If two integers are sent, the control module assumes they are a module and switch value and defaults to the last matrix value sent.
E.g. “L3 2 3” Matrix 3, Module 2, Switch 3 is closed (ON). Then,
“L1 4” Assumes Matrix 3. Matrix 3, Module 1, Switch 4 is closed (ON). Then,
“L5” Assumes Matrix 3, Module 1. Matrix 3, Module 1, Switch 5 is closed (ON).
Some Cytec programming examples may refer to Mod #, Rly # ( Relay #). The terms Switch (Sw) and Relay (Rly) mean the same thing. For Unidirectional matrix switches, specifically DX, DXM, VDX, VDM and TX, the Module # may be thought of as Input #, and the Switch or Relay # may be thought of as the Output #.
C – Clear Command
Syntax: Cmd
Cmd Matrix
Cmd Matrix, Module
E.g. “C” All switches in the system are opened.
“C3” Clears Matrix 3.
“C0 2” Clears Matrix 0, Module 2.
The Status and Interrogate commands return information to the user so they can determine what state each switch point is in before proceeding. The commands can be used to simply check the switch configuration, to verify connections, or to prevent unwanted connections. The information returned by these commands can be different depending on what type of system you have. Please find the Status or Interrogate section for your specific system before writing code that is dependent on the returned values.
Syntax:
S :Returns Status of entire mainframe chassis
SMatrix# Module# :Returns Status of specified module #
SMatrix# Module# Switch# : Returns Status of specified switchpoint
Status may be requested of a single switch point or for the entire chassis. After receipt of the Status command the Matrix will return a character or string of characters representing the status, open or closed, of a switch point or switch points. A one, ‘1’, signifies a closed switch point (ON) and a zero, ‘0’, an open switch point (OFF).
In the case of a single switch point Status a single character is returned followed by an end of line.
For multiple switch points, a stream of 1’s and 0’s will be returned. How they are returned and what they mean is dependent on the type of system.
Status return is broken down into four different groups:
Status Returned Values with 8 to 32 drives ( any model designated as xxx/16 or xxx/32 )
These Models Include:
Model numbers are shown on the rear panel label. If the model number is simply an integer such as “6754” you should reference the addendum for the system or contact Cytec with questions if you do not know what it is returning.
The S command sent by itself will return a continuous string of 16 or 32 1’s and 0’s followed by the answerback character ( if on ) and the end of line character. The string is ordered from lowest value switch to highest value switch.
E.g. for a CXAR/32 chassis
Send: “S”
Receive: “000100010000000000001100000000010” eol 32 switch points + Answerback + EOL
This is interpreted as Switches 3, 7, 20, 21 and 30 are ON, the rest are OFF. In Module#, Switch # syntax this is:
Mod 0, Switches 3 and 7 are ON.
Mod 1, no switches are ON.
Mod 2, Switches 3 and 4 are ON.
Mod 3, Switch 7 is ON.
All other switches are OFF.
If the Answerback function is on, the last 1 or 0 before the EOL will be the Answerback character and the value is a “don’t care”. If Answerback + termination character is ON, there will also be the termination character [].
These Models Include:
The S command sent by itself will return a row / column pattern of 1’s and 0’s that mimic the LED display on the front panel (if equipped ), where the columns are the Module # and the Rows are the Switch #.
Eg. for a 16 Module, 8 Switch Matrix ( your configuration may be different):
Send: S
Receive:
“0001000100000000” eol Switch 0 on Modules 3 and 7 closed
“0000000000000000” eol Switch 1, open on all modules
“1111111111111111” eol Switch 2, closed on all modules
“1000000000000001” eol Switch 3 on Modules 0 and 15 closed
“1010101010101010” eol Switch 4 on odd Modules closed
“0101010101010101” eol Switch 5 on even Modules closed
“0110000000000000” eol Switch 6 on Modules 1 and 2 closed
“0000000000000110” eol Switch 7 on Modules 13 and 14 closed
“0” eol Answerback character
If the Answerback function is on, the last 1 or 0 before the EOL will be the Answerback character and the value is a “don’t care”. If Answerback + termination character is ON, there will also be the termination character [].
Status Returned Values RJV Systems
RJV systems are unique and the returned status is specific to those systems. Skip this section if you do not have an RJV/48 or RJV/144 system.
Response to “S” command: A line of ones and zeros will be returned for each switch module in the system. For the RJV/48 there will be four rows of 24 1’s or 0’s. For the RJV/144 there will be 12 rows of 24 1’s or 0’s. Each line returned will be followed by an end of line (EOL). For LAN and RS232 interfaces there may also be an Answerback character before the EOL if Answerback is enabled.
At the end of all output rows an end of line will be sent for both interfaces. See the command completion and answerback sections for details.
Eg. An RJV/48 with four 6×4 Modules:
Send: “S” Status of chassis
Receive:
“000100010000000000000000” eol Module 0, Switches 3 and 7 closed
“000000000000000000000000” eol Module 1, none closed
“100000010000000100000001” eol Module 2, Switches 0, 7, 15 and 23 closed.
“000000100000000000100000” eol Module 3, Switches 6 and 18 closed.
An RJV/144 will return 12 rows with 24 1’s or 0’s in each row.
Status Returned Solid State Switches
Solid State Systems such as the DX/256×256 return a list of closed switchpoints identical to the response to the “I” command shown next.
I – Interrogate Command
Syntax: I
The Interrogate function will return a list of all closed switch points.
Eg. Send: ”I” Request interrogation.
Receive: “0,0 eol Module 0, Switch 0 Closed.
1,6 eol Module 1, Switch 6 Closed.
3,2 eol” Module 3, Switch 2 Closed.
NOTE: Upon requesting status or interrogation characters all characters MUST be received by the requesting device. Failure to do this will prevent further use of the system.
Currently, Cytec switches allow only six saved lists and list 0 is always the current latched points. Valid values for n are 1-6.
Char
‘0’
‘1’
‘2’ or ‘3’
‘4’ or ‘5’
‘6’ or ‘7’
‘8’ or ‘9’
Completion Status
Successful operation, switch open.
Successful operation, switch closed.
Unknown Command.
Incorrect entries, the number or type of entries was incorrect
Out of limits
Invalid Access Code