RS-485 SERIAL COMMUNICATIONS
RS-485 communications allows for transmitting and receiving of data over a
single pair of wires. This feature can be used for monitoring various values,
changing values, and resetting output(s), from a remote location. Typical
devices that are connected to a C48C unit are a printer, a terminal, a PLC, an
HMI, or a host computer.
The RS-485 differential (balanced) design has good noise immunity and
allows for communication distances of up to 4000 feet. Up to 32 units can be
connected on a pair of wires and a common. The unit’s address can be
programmed from 00 to 99.
Communication Format
The half-duplex communication operation sends data by switching voltage
levels on the common pair of wires. Data is received by monitoring the levels
and interpreting the codes that were transmitted. After the unit receives a
Transmit Command or Print Request, it will wait 100 msec before it will begin
transmitting data. In order for data to be interpreted correctly, there must be
identical formats and baud rates between the communicating devices. The
formats available for the C48C unit are 1 start bit, 7 or 8 data bits, No parity or
1 parity bit (odd or even) and 1 stop bit. The available baud rates are 1200, 2400,
4800, or 9600 baud.
Before serial communication can take place, the unit must be programmed to
the same baud rate and parity as the connected equipment. In addition, the loop
address number and print options should be known. When used with a terminal
or host computer and only one unit is employed, an address of zero (00) may by
used to eliminate the requirement for the address specifier when sending a
command. If more than one unit is on the line, assignment of unique non-zero
addresses is recommended.
Sending Commands and Data
When sending commands to the C48C unit, a command string must be
constructed. The command string may consist of command codes, value
identifiers, and numerical data. Below is a list of commands and value
identifiers that are used when communicating with the C48C unit.
-30-
1 ST
OP
BI
T
PA
RITY
BI
T
7 DATA BITS
1 ST
AR
T
BI
T
T10
T9
T8
T7
T6
T5
T4
T3
T2
T1
T0
1 ST
OP
BI
T
8 DATA BITS
1 ST
AR
T
BI
T
T10
T9
T8
T7
T6
T5
T4
T3
T2
T1
T0
DATA FORMAT - 10 BIT FRAME
(Parity = odd or even)
DATA FORMAT - 10 BIT FRAME
(Parity = none)
DESCRIPTION
N(4EH)
P (50H)
S (53H)
Set value; Followed by one value identifier (1, 2 or 3)
T (54H)
Transmit value; Followed by one value identifier (A thru F)
V (56H)
Unit Address ; Followed by a one or two digit address number 1-99
Transmit Print Options; Transmits the options selected in the Print
Options section of the Programming Menu
Change value; Followed by one value identifier (A thru F) then the
proper numerical data
COMMAND
R (52H)
Reset value; Followed by one value identifier (E, F, 1, 2 or 3)
Figure 12, Data Format - 7 Data Bits
Figure 13, Data Format - 8 Data Bits
Summary of Contents for C48C
Page 1: ...THE 1 16 DIN COUNTERS MODEL C48C INSTRUCTION MANUAL...
Page 6: ......