Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 8 of 10

Class 8030 Type CRM565 Network Interface Module (For Square D PowerLogic Circuit Monitor), pages 35 to 40

Pages 35 to 40 of 50: 6: Network Operations; 7: Theory of Operation

The original document is the PDF (1.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Square D 8030-CRM-565 and Schneider 8030-CRM-565

Page 35 read from a scan by OCR; it may hold reading errors

30598-756-01 Page 6-1

6.0 CIRCUIT MONITOR NETWORK OPERATIONS

6.1 SY/MAX and Circult Monitor Communications

The Circuit Monitor (CM) supports a protoco] which allows it to be interfaced with SY/MAX® producta. Circuit Monitor communications are made possible via an RS-485 electrical interface which offers RS- 422 connectivity and allows multipoint communica-tiona from a single controlling source/master. The Circuit Monitor supports both the SY/MAX point-to-point protocol as well as the SY/MAX PNIM protocol. The Circuit Monitor will emulate a Slave device when it is in the PNIM mode. The PNIM should be selected to the PowerLogic mode. The Circuit Monitor will automatically select which protocol (SY/MAX point-to-point or PNIM) it will communicate with as it receives its first message after power is applied.

SY/MAX point-to-point protocol! allows direct communication from one device to another, using RS- 422 hardware. This means that a SY/MAX processor, for example, can communicate directly to a single device such as another proceasor or the PowerLogic Network Interface Module (PNIM). The PNIM's function is to allow multiple masters (via SY/NET) to communicate to a CM network.

The PNIM has a unique protocol that allows asynchronous, multipoint communication to a CM network or up to a maximum of 16 Circuit Monitors. This method of communication is accomplished with the use of routing | Section 5.3.2|offers a description of the use of “Routing” in Circuit Monitor communications. For additional information on CM routing, refer to Instruction Bulletin 63074-140-XX.

6.2 General PowerLogic Circult Monitor Communication Rules Host 1 N Pereonal M Host 3 ia} Host? ot Processor oan \ DLOG O C} aan Monitor Network

Pp N 4 M

OCF} is) (t) TJ

Figure 6.1 - CM Communication with Multiple Hosts

1. When laying out a Circuit Monitor (CM) network, only a single CM should be connected to a SY/MAX device (e.g., processor) com- munication channel]. PNIMs are required if it is necessary to connect multiple CMs to mul- tiple masters. Refer to} Figure 6.1,

2. Only READ and WRITE commands will be recognized by the CM if the CM is connected to a processor or PNIM. ALARM commands cannot be used. If a personal computer is used as a host device, the user will need to determine what commands he will use to read from and write to the CM. (Refer to In- struction Bulletin 63074-140-XX.)

3. The CM will only respond to commuunica- tions from the host. The CM cannot initiate any communications.

4. To ensure the fastest response time from CMs, utilize the lowest available CM addres-

5. When multiple CMs are connected to a PNIM, there must be one (and only one) CM whose device address switches are set to 01. This should be the last CM on the link. For additional information, refer to the Power- Logic Manual 63074-140-XX.

6. When a single CM ie connected to a com- munication channel, its device address

Page 36 read from a scan by OCR; it may hold reading errors

Page6-2 30598-756-01 switches must be set to 00. However, its logi-cal address will be 01. Refer to 63074-140-XX.

6.3 General SY/MAX Programming Information for Circuit Monitor Communication

Communications to the CM can be accomplished via a ladder program stored in a SY/MAX processor. A typical program may include the following functions:

¢ Initialization of User-defined parameters ¢ Establishment of Communications

« Control Commands

To enaure that the data returned from the CM is accurate, the user must define the CT and PT rating as well as the system configuration (3 wire or 4 wire). To ‘setup’ the CM, a write to the CM’s registera must be done. Please refer to the Circuit Monitor Instruction Bulletin 63074-140-XX.

Processor communication instructions allow hosts to communicate directly with a CM or communicate with multiple CMs. For additional details, refer to 63074-140-XX

Control commands are executed by writing specific bits in the CM command register (register 237). To perform these commands, set the bit corresponding to the required task. For a full detailed description of the command capabilities of the CM, please read Circuit Monitor Instruction Bulletin 63074-140-XX.

Note: The only commands that may be performed directly on PowerLogic Circuit Monitor registers are the Priority READ/WRITE, non-priority READ/WRITE, and multiple register READ commands.

6.4 Registers Required to Maintain SY/MAX Compatibility

To maintain compatibility with other SY/MAX equipment the CM can respond correctly to read operations from specific_registers. These read only registers are shown in| Table 6.1]along with the default value that will be returned to the host.

Default Reg # Register Description Value 8172 Scan Time 0 8173 End Fenced Register 8176 8174 Begin Fenced Register 1 8175 Error Number 0 8176 Processor Control/Status Bits 6 8177 Password Register 0 8178 Restriction Register 0

1819-6180 Not Used 8181-8182 Memory Size Available for ladder) 0

8183-8184 Secondary Error Register, o* 8185 Number of Rack Addresses 0 8186 Processor/Keyswitch Status 4 8187 Number of Rungs 0 8188 1.D. and revision 450 8189-8190 Memory Size in bytes ca) 8191-6192 Memory Used in bytes ts)

Note: Registers 8172-8192 are not saved at power fail but are initialized to default values on power-up / reset.

*turther defines 8175

Table 6.1 - CM default values for SY/MAX compatibility registers

Page 37 read from a scan by OCR; it may hold reading errors

30598-756-01 Page 7 -1

7.0

THEORY OF OPERATION

71 Power Cycling

Power-Up

When power is applied to the CRM565, it automatically entera a self-test_sequence. This sequence, described fully in] Section 8] Troubleshooting, does the following:

* Testa internal PROM for checksum. * Clears interna] RAM.

« Performs a READ/WRITE test on the RAM.

+ Flashes the NET TX ERROR and NET RX ERROR lights to verify each portion of the self-teat.

If the CRM565 passes the self-test, it automatically goes inte normal operation. If any part of the self-test is failed, the NET TX ERROR and NET RX

ERROR lights flash in a sequence which identifies the problem. See |Section 8.1.4]to identify a particular sequence.

CAUTION:

All messages re received by the CRMS565 during Its power-up cycle are Ignored, and the device that originated message receives an error.

Power-Down

When the CRM565 detects that incoming power is being removed (the AC-FAIL signal from the SY/MAX power supply drops below 0.3V), it goes into a shutdown routine. The CRM566 does the following:

* Communication in and out of all three ports is stopped.

¢ The network port is shut off, disconnecting the CRM565 from the SY/NET network.

« A “Halt” state is entered, and continues until proper power ia restored.

CAUTION:

When system power Is lost, all messages stored within the CRM565 at the time power is removed are erased.

7.2 Message Handling

The CRM5665 (PNIM) supports two types of communications: (1) Local Area Network (LAN) communication over the high-speed network (NET) port and (2) COMM port communications.

It also coordinates the communication between the COMM ports, the NET port and the SY/NET net- work and can be interconnected with up to 99 other Network Interface Modules on a single LAN.

Data transmission over the network is accomplished by a synchronous data stream structured to conform to a standard protocol format known as Manchester Encoded HDLC. (High Level Data Link Control

‘HDLC - used and defined by IBM Corporation).

HDLC provides data tranafer, message acknow- ledgments, and error recovery (CRC). All SY/NET network ports communicate to each other using HDIC.

The COMM porta are used to connect the PNIM to a SY/MAX device and/or circuit monitora. COMM port communication consists of an asynchronous data atream from the PNIM to a PC, CRT, circuit monitor, etc. The data atructure is similar to ANSI 3.28 protocol. Thia protocol contains data which refers to ladder rungs, register data, I/O status, etc.

When the PNIM receives a message from either COMM port, it checks for a valid data format, measage type, size, and checksum and then send the measage out either the opposite COMM port or the NETWORK port. The port selected is determined by the ROUTE information contained in the incoming message.

Note: COMM Port 0 can operate in either the SY/MAX, or PowerLogic circuit monitor modes. COMM Port 1 (the lower com- munication port) operates only in the SY/MAX mode.

Page 38 read from a scan by OCR; it may hold reading errors

Page 7-2 30598-756-01

7.2.1 Network Messages

Description

Network communication occurs only between Network Interface Modules, and consists of a stream of synchronous data in a format known as HDLC (High-level Data Link Control). HDLC provides data transfer, message acknowledgement, and error recovery; all SY/MAX network ports “talk” with each other using HDLC.

When a network message is received by the CRM565, it does one of three things with the message:

¢ Sends it to one of the COMM ports (and hence to a SY/MAX device such as a processor) based on the message’s internal ROUTE statement.

¢ Creates an error message in response to the received message.

* Holds the message internally for later use.

In all three scenarios, the CRM565 will always acknowledge a received network message (except a broadcast message).

Network Access

Since all network communication occurs over a single twinaxial cable, messages must be coordinated to prevent “collisions”. The CRM5665, and all other NIMS on a network, cannot transmit at ran-dom; they muat first gain access to the network.

Accesa to the SY/NET network is controlled by a time-sharing scheme that accomplishes the following:

« Allows every NIM a chance to transmit a message.

« Prevents a single module from tying up the network.

Within each NIM (and PNIM) is a timer that has an upper limit determined by which network size is selected on the DIP switches. (See Section

« Jf network size is set to “100” (as it is set from the factory), the clock times to 20 milliseconds and then resets to zero.

+ Ifa network size is “30”, the timer times to six milliseconds before resetting.

For either network size, each module has a 200 microsecond window in which it can send a message (20 mS/100 NIMs or 6 mS/30 NIMs = 200 microseconds per NIM).

All the NIM timers on the network are synchronized with each other, since they are all reset at the same time. The timers reset either when power is applied to the NIM, or after any NIM on the network sends a message.

CAUTION:

If nolse Is coupled Into the network cable, the thners will reset.

Module Priority

Each NIM ie assigned a Network Device Number (NDN) by dialing in a two-digit number on its front-panel thumbwheel. The lower this number is, the higher the transmission priority of that module. For example, module #17 transmits before module #26; the NIM with “00” as its NDN therefore gets the first chance to transmit its message. Refer to Figure

7.1 below,|

Zz ZZ a S \ rear &

Figure 7.1 - Transmission Access to Network

System Power-up

The following sequence occurs when power is applied to any NIM (or PNIM):

1. When power is first applied to the network, all NIMS on the network reset their timers to zero and begin timing.

2. If, at the instant the timers are reset to zero, module #00 has a message to transmit, it doea so. If it doesn’t have a message by the end of its 200 microsecond window, the time window for module #01 opens and module #01 can transmit.

3. If module #01 does transmit a message, all module timers are reset to zero and module #00 time window opens. If module #01 does not transmit, the timers continue timing.

Page 39 read from a scan by OCR; it may hold reading errors

4. At the end of 400 microseconds, module #02’s time window opens. As with module #01, if module #02 has a message to send it does so, and the timers reset to zero. After the timers reset, module #00 time window opens, fol- lowed by module #01, and then module #02.

5. After all modules on the network have transmitted and the timers reach 20,000 microseconds (100 NIMS x 200), or 6,000 microseconds (30 NIMS x 200) they reset to zero. All modules can once again transmit, and the sequence starts again.

Note: A message in progress CANNOT be inter- rupted.

Since the priority of tranemission depends on the NDN of the NIM, a lower-numbered NIM could “hog” the network if it has numerous messages to send. The following example shows how this is avoided:

Example:

Under a atrict “lowest NDN first” priority system, module #07 will always gain access to the network before module #20. All NIM timers reset to zero after module #07 transmits; if module #07 has multiple messages to send, module #20 may never get a chance to send ita message. To prevent this, the SY/NET does the following:

1. Module #07 has several messages to trans- mit; module #20 has a single message to send.

2. When 1,400 microseconds has elapsed and module #07's time window opens it transmits one of its messages.

3. All NIM timers reset to zero, and begin counting again.

4. When 1,400 microseconds has again elapsed, module #07'a time window is blocked. Module #08’s window opens at 1600 microseconds.

5. After 4,000 microseconds, module #20 can transmit its single message.

6. After either 20,000 microseconds (100 NIMs) or 6,000 microseconds (30 NIMs), all timers reset to zero and the block on module #07 is removed.

7. When 1,400 microseconds elapses, module #07 sends the second of its messages and all timers reset to zero. The block on #07 goes

30598-756-01 Page 7-3 into effect again until all time windows are open.

This EQUAL priority blocking procedure guarantees that ali NIMS on a network have at least one chance to send a message during the regular 20,000 or 6,000 microsecond cycle.

7.2.2 COMM Port Messages

The two COMM ports on the CRM&565 PNIM’s front panel handle all non-network communication, and are used to direct an incoming network message to the appropriate SY/MAX device or PowerLogic Circuit Monitor.

Each COMM port operates independent of the other; each can be set to one of two modes (see Section 3 for the pinout of the COMM ports). The ports support EIA standard RS-422 communication (with handshaking).

As shown in[ Figure 7.2] both COMM ports send messages to or receive messages from a 15-message buffer. When the buffer receives a 16th message, it overflows and illuminates the NET TX ERROR LED. A device attempting to send a message to either COMM port will not get through, and must

. Ye-transmit its message when the number of mes-sagea in the buffer drops below 15.

ES | REDUCTION perc 1 = ment t Incoming Network Message

|_|

Figure 7.2 - CRM565 Buffer

For more information on errors, see] Section 5 | Troubleshooting.

Page 40 read from a scan by OCR; it may hold reading errors

Page 7-4 30598-756-01

7.2.3 Buffering

Another function performed by the PNIM ie buffering of communication messages. Buffering refers to: (1) message speed conversion, and (2) the holding and storing of messages.

As messages are received through the network port, the PNIM waite until the complete message is received, acknowledges the message, and then retransmite the message out the designated COMM port to the destination device.

During this retranemitting, a baud rate change takes place. The message received at 62.5-500K baud (network speed) ia retransmitted at 1200-9600 baud (COMM port 0 speed or COMM port 1 speed).

The same conversion is made when messages are sent to the Network Module via the COMM ports. Upon receiving a complete message from COMM port 1, the PNIM acknowledges the message and then retransmits the message over the network at 62.5-500K Baud. For PNIMg, no acknowledge will be sent out COMM Port 0 if COMM port 0 is set to Circuit Monitor mode.

This Baud rate conversion applies to all messages sent/received via the Network and COMM ports. As more and more messages are received by the PNIM, it may have to store the messages in a buffer until it is the PNIM’s turn to transmit over the network.

The PNIM has 15 buffers total. When more than 15 messages are received, the PNIM buffer will overflow and a Network Overflow Error will occur. This error ia indicated by a flashing NET Tx error light on the originating Network Module. As soon as the message has been sent by the PNIM, one buffer becomes available for another message.

Note: If more than 15 measagee are received by the CRM565 simultaneously, the CRM565 buffer will overflow and the NET Tx ERROR lamp will flash. As soon as one of the 15 buffer positions opena up, the error is cleared. Since the device originating the error-causing message will re-transmit, the second try should successfully load the CRM565’s buffer.

7.3 Error Handling

7.3.4 Network Port

For every command message (Read/ Write/ Alarm /Putr/ Getn) transmitted over the network, there will be a reply message. If a message transmitted over the network is not acknowledged, or a negative acknowledgment is received, the network port will automatically re-tranemit the message up to three times. If, after the last attempt, a negative acknowledgement or no acknowledgement is received, an Error 17 will be sent back to the initiating device. The Next TX LED will flash on the PNIM through the message originated.

Note: Each retransmission must wait for an open time slot. 7.3.2 Communication Ports

Similar to the network port of the PNIM, messages

- transmitted from the COMM Port 1 or COMM Port

0 - set to SY/MAX mode will receive an acknowledgement. If the message transmitted by either of these ports is not acknowledged, or a negative acknowledgement is received, the communication port will re-transmit up to eight times. If after eight at-tempts a negative acknowledgement or no acknowledgement is received, an Error 17 will be sent back to the initiating device. The Net TX LED will flash on the Network Module through which the message originated. By automatically re-tranamitting messages when an error occurs, messages can get through even under noisy electrical conditions.