The text of a manual · part 4 of 10
Class 8030 Type CRM-510 Network Interface Module, pages 13 to 16
Pages 13 to 16 of 44: 4: Module Operation; 5: Defining the Network
The original document is the PDF (1.3 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-510 and Schneider 8030 CRM-510
Page 13
3.2.3 INSTALLATION CONSIDERATIONS
When installing the network cable, the following rules should be applied.
1. Provide a minimum of six inch distance between the network cable and 120 volts AC, 12 inches at 240 volts AC, and 24 inches at 480 volts AC.
30598-257-02 Page 13
2. When the network cable is routed through conduit, the conduit must be grounded to building steel.
The signal level on the network cable is approximately five volts DC (RS422). Routing of the network cable should be done in accordance with standard wiring practices for low level switching signals. See Instruction Bulletin 30598-175- 01 (Planning Instaltation Guide}.
4.0 MODULE OPERATION
4.1 Power Cycling
When power is applied to the Network Interface Module (NIM) it will automatically go into a self test sequence. This sequence tests the internal PROM memory for checksum. clears the built in RAM memory and performs 2 read/write test on this memory. During this startup sequence, the NET RX ERROR and NET TX ERROR lights will flash on and off. If the module passes these tests, the module will then go into a normal operational mode. If an error is detected the module will flash the RX and TX indicating lights in a pattern which indicates the type of error found. Cycling power will reset the module.
Note: Any messages received by the Network Interface Module during power-up will be ignored. Initiating devices i.e. processors, CRT’s, will receive an error.
Power Down Sequence
When the Network Interface Module senses that power 1s being removed (AC fail signal from the power supply drops below .3 volts) the Network Interface Module will go into a shut down sequence.
During this shut down sequence the NIM will hait all communications, turn off the network port - disconnecting it from the network - and then halt until power is re-applied.
Note: Any messages stored in the Network Interface Module will be lost!
4.2 Message Handling
The Network Interface Module basically supports two types of communications: (1) Network communications, NIM to NIM and (2) COMM Port communications; PC to PC, CRT to PC, etc. [t also coordinates the communication between the COMM ports, the NET port, and the SY/NET network.
Network Communication consists of a synchronous data stream from one Network Interface Module to another. This data structure is in the form of a protoco! known as HDLC. (High Level Data Link Control).
HDLC provides data transfer, message acknowledgements, and error recovery. All SY/NET network ports communicate (talk) to each other using HDLC.
COMM Port Communication consists of an asynchronous data stream from the Network Interface Module to a PC,
CRT, etc. The data structure 1s similar to ANSI 3.28. protocol. This protocol] contains data which refers to ladder rungs, register data, [/O status, etc.
The Network Interface Module. when it receives a message from either COMM port, will check for a valid data format, message type, size, and checksum and then send the message out either the opposite COMM port or the NETWORK port. The port selected is determined by the route address data received from the incoming message.
4.2.1 MESSAGE COORDINATION
As messages are received by the Network Interface Module, it will either, 1} send the message to another port, 2) build an error message and send it to the initiating device, or 3) hold the message for later use. In all cases, the Network Interface Module will reply to the initiating device.
Network Module Number
On the front of the Network Interface Module are two thumbwheels and two COMM ports.
The thumbwheels can be set to any value between 00 and 99. Access hotes located on the right side of the Network Interface Module allow thumbwheel switch changes.
The thumbwheel number selected refers to:
A. Network module number or address (used with COMM port)
B. Network time slot
C. Network module priority
The top The bottom
COMM port has a prefix of 0 0, - - COMM port has a prefix of 1 |, - The thumbwheel number, when used with the COMM port number will define a ‘Network device number"’ or address. For example:
Thumbwheel number #15 has device numbers Top COMM port ....... O15 Bottom COMM port ....... 115
Since the thumbwheel number can be set from 00 to 99 and each Network Interface Module supports two COMM ports, then up to 200 unique network devices may be connected to a single SY/NET network.
If you need to connect more than 200 devices seq Section 5.2| (Net to Net mode).
Page 14
Page 14 = 30598-257-02
Any device that is plugged into a COMM port on the Network Interface Module will assume the COMM port's *‘network device number'’.
Once every device on the Network Interface Module contains a network device number’’, this device number can be used to route messages from one device to another.
4.2.2 NETWORK ACCESS
Before 4 message is sent '‘On the Network’. the Network Interface Module will hold the message and wait for its turn to communicate.
Since all network communications occur over the same twinax cable (Belden 9463), network access by ail NIM‘s has to be controlled in order to prevent message collisions.
Network access ts controlled by a time sharing method which, i} allows every module a chance to “‘taik’” on the network, 2?) prevents any module from hogging the network, and 3} provides device priority for important (alarm) messages.
The thumbwheels on the front of the Network Interface Module select the time slot when the NIM is allowed 10 send a message.
How is this done?
Within each Network Interface Module is a timer. On pawer-up and at the end of every message these mers are reset and then start timing. (Noise will also reset all timers). Ata value of 0, module 0 1s allowed to talk on the nctwork. If module 0 has nu inessage tu put on ihe aecwork, the Umer continues uming and module | is atlowed to send a message. This sequence continues to a count of 99; allowing every module the opportunity to talk on the network. When the timers reach acount of 104), all modules will reset their timers to 0 and the sequence will start over.
The time slot for each Network Interface Module is approximately 200 us for a total slot time of 20 ms for 100 Network Interface Modules. If the network contains less than 30 modules, the total slot time or loop around time can be reduced to 6 ms. See Section 10.1 for switch settings (switch 7 DOWN on switch group $5).
4.2.3 PRIORITY
Priority refers to the ability of one network device to send a message before another lower priority device can gatn access. Network priority is controlled by the thumbwheel number on the front of each Network Interface Module. The lower the number, the higher the priority.
The SY/NET Network supports £00 priorities (thumbwheel settings). For example; Module #18 will talk on the network before Module #19; Module #30 before Module #31, ec. Since the time slot timer starts at O and advances to 99, module 0 will get first access to the network.
At the end of any message on the network, all] timers are reset and the priority devices {lower thumbwheel numbers) again get first chance to talk on the network. For example: If madule 22 is sending a message and module 23 has a message wailing to be sent, module 23 wil] have to wail its turn. When module 22's message ends, all timers will reset to 0 and begin timing. If no other modules (G thru 22) have a message to send, the timer will advance to 23 allowing module 23 to send its message.
If any module 0 thru 21 did have a message to send, module 23 would have to wait.
Note: You cannot interrupt a message already in progress.
4.2.3.1 Automatic Priority Shifting or Round Robin System
Initially the SY/NET network will operate under the 100 priority system referred to as SET priority. As network activity increases the set priority system shifts into an EQUAL priority or round robin system.
Under an equal priority system all modules have the same priority.
Why equal privtity?
With a SET prionty system. module 7 for example, gains access to the network before module 29. When module 7's message is done all NIM timers zre reset to 0 and start timing. If module 7 has multiple messages to send and its time slot comes up. it could hog the network.
Instead, Network Interface Module #7 will skip its turn giving up its priority until the timer reaches a value of 100 (or 30).
What this means is that as other modules communicate (get their turn) and the module timers get reset, module 7 will be blocked - prevented from sending messages - until all modules have a chance to send one message. By doing this you can predict the worst case network access delays through any module and insure that all devices will have access to the network even with very high message counts.
Once the module timers reach a value of 100 or 30, all modules that were blocked will be unblocked and the network wilt revert to a set priority system.
4.2.4 BUFFERING
Another function performed by the Network Interface Module is buffering. Buffering refers to 1) message communications speed conversion and 2) the holding of messages for later use
As messages are received thru the network port, the Network Interface Module waits until the complete message is received, acknowledges the message. and then retransmits the message out a COMM port.
During this retransmitting, a Baud rate change takes place. The message received at 62.5-SOOK baud (network specd) is retransmitted at 300-9600 Baud (Comm port speed).
The same conversion is made when messages are sent to the Network Interface Module via the COMM ports. Upan receiving a complete message, the Network Interface Module acknowledges the message und then retransmits the message over the network at 62.5-500K Baud.
This Baud rate conversion applies to all messages sent/received via the Network and COMM ports. As more and more messages ure reccived by the Network Interface Module (NIM) the NIM may have to save the messages in a buffer until they can be retransmitted.
The NIM has 16 buffers shared by both COMM ports. When more than 16 messages are received, the NIM*s buffer wiil overflow and a Network Receive Error will occur. Typically
Page 15
this error is indicated by a flashing NET Tx error light. As soon as the message has been sent by the NIM, one buffer becomes available for another message.
4.3 Error Handling
In addition to parity. checksum, and CRC checks associated with each message. every message on the network is acknowledged. Which means, that for every command message, there is a reply message.
If a message is not acknowledged. or a negative acknowledgment is received, the network port will automatically re-
30598-257-02 Page 15 transmit the message up to four times. If after four attempts. a negative acknowledgment or no acknowledgment is received, a message will be sent back to the initiating device. also the Net TX LED will flash on the NIM that originated the message.
The same message acknowledgment applies to the COMM Ports. If an error is detected, the NIM will automatically re-transmit the message up to eight times.
By automatically re-transmitting messages when an error occurs, messages are allowed to get thru the network even under noisy electrical conditions.
5.0 DEFINING THE NETWORK
5.1 Routing
{n order to direct communications trom one device to another ‘‘over the network’’ each device on the network must contain a ‘‘network device number’’, Once defined, two or more network device numbers can be added to communication rungs creating a path or ROUTE the message will take over the network.
For single-network communications, only two network device numbers are required to route the message over the network. The first route value defines where the message will originate (source), and the last route value defines which device will receive the message (destination). Once you have defined a source and destination or ROUTE: normal communication can take place.
5.2 How To Determine Network Device Number
On the front of the Network Interface Module (NIM) are two thumbwheel! switches. These switches can be set from 00 to 99 (access holes are located on the right side of the module).
The network device number is determined by reading the thumbwheel value on the front of the NIM and adding a 0 or | in front of the NIM number for Comm Port 0 or | respectively.
Basically the top Comm Port has a network device number equal to the thumbwheel value, and the bottom Comm Port has a network device number equal to the thumbwheel value plus 100. For example: a NIM/thumbwheel value of 25 will define:
Top Comm Port device number equals 025 Bottom Comm Port device number equals 125
Since the thumbwheels can be set from 00 to 99 and each NIM supports two Comm Ports. a total of 200 devices can be connected on a single network.
NOTE: Any device that is plugged into a Comm Port on the Network Interface Module will assume the Comm Ports’ network device number.
NETWORK DEVICE NUMBER
5 THUMBWHEEL VALUE
5.3 How To Use Routing
With direct PC to PC communications, you would use a **READ" or “WRITE” rung, as in Figure 5.1.
2 f STAT LOCAL, - REMOTE, - COUNT + | - 1 WRITE 2 $80 $10 $20 1 | |
Figure 5.1 - WRITE Rung Without Routing
In Figure 5.1, PC A will write register !0 to register 20 in PC B.
To route messages over the network, you need to first determine the network device number of the PC initiating the WRITE rung and the network device number of the receiving PC. Next, you need to add these network device numbers to the communication rung.
Page 16
Page 16 30598-257-02
P. C. Olr_A CH
P. C,
V4 B
Figure 5.2 - Defining Network Device Number
In Figure 5.2, PC A is connected to NIM number seven, Comm Port one and has a network device number of 107. PC B is connected to NIM 15, Comm Port one and has a network device number of 115. Adding these network device numbers to the WRITE rung allows the same communications to occur, but now will be routed over the network. See Figure 5.3.
Zz ~~ ROUTE, ROUTE, STAT, LOCAL, REMOTE, COUNT os i WRITE 2 = 107 115 580 $10 $20 1 |
Figure 5.3 - WRITE Rung With Route Values Added
5.4 Net-to-Net Routing
Network to Network routing allows several networks to be linked together, See Figure 3.4.
a P.C. P.C., () A Let) B O-4 Y | ceT LA oY) | I Lr SY/NET #1 : 9 | 2) P.C. oO ce) ¢ ~O i | Lt SY/NET #2
Figure 5.4 - Sample Net-To-Net Layout
When communicating over a net-to-net link, you will need to put an additional network device number into your communication rungs. In Figure 5.4, PC A has a network device number of 107, the network device number of the net-to-net link is 007, and PC C has a network device number of 109. A net-to-net Jink has been established by connecting two network Comm Ports together and setting both NIMs to the net-to-net mode.| See Section 6.2.
NOTE: Both Network lnterface Modules involved with the net-to-net link must have the same thumbwheel settings and network device numbers.
CAUTION: On any network, each module must have a unique thumbwheel setting. If two NIMs have the same number, the network will not operate properly.
Using the rung in Figure 5.5, PC A will route its message through the net-to-net link to PC C,
Z [Route, ROUTE, ROUTE, STAT, LOCAL ~ REMOTE: COUNT + Ffvone 107 7) 109s«iSBDSC(‘iSY CSO
Figure 5.5 - Sample WRITE Rung With Net-To-Net Route Yalues
The first route value always defines the source device, the second route value defines net-to-net link and the last route value always defines the destination device.
As more route values are added to the communication rung, further net-to-net linking can take place.
Within the PC, five to six route values can be programmed. Within fj umimer, up to eight route values can be defined.|See Section 6.2}for more net-to-net mode information.