...
Supported device types and versions
Communication line configuration
Communication station configuration
I/O tag configuration
Installation of Windows NT driver for KMFB-02 card
Literature
Changes and modifications
Document revisions
Kotva | ||||
---|---|---|---|---|
|
...
This protocol supports the communication with the Allen-Bradley devices, SLC-500 series. The communication supports a direct connection to DH485 bus through the KMFB02 communication card KMFB02.
Kotva | ||||
---|---|---|---|---|
|
...
- Communication line category: KMFB02 Allen-Bradley DH485.
- Line parameters (a DH485 tab DH485):
- The address of the station in the range of 0 to 31. It is the address under which the communication process is logged on to DH485 bus used by the D2000 KOM process on the DH485 bus (through KMFB02 card). Any No other device on the DH485 bus must not may use this address.
- Maximum address of station in the range of 1 to 31. It represents the maximum count of devices which can be connected to DH485 bus. The devices with the a higher address than this parameter cannot communicate. This parameter should be configured identically to all SLC devices SLCs or other one devices that are connected to DH485 bus.
- Baud rate of DH485 is optional 9600 or 19200 Baud.
- Maximum packet count means the maximum online semi-finished transactions in communication with SLC devices. The default value is 3. Be careful when you will increase it, and trace the errors on the communication line.
Kotva | ||||
---|---|---|---|---|
|
...
- Communication protocol: Allen-Bradley DH485.
- The station address is DH485 Node Address in the range of 0 to 31.
...
Configuration station dialog window - tab "Protocol parameters".
They influence some other optional protocol parameters. There may be defined the The following station parameters can be defined:
Table 1
Keyword | Full name | Meaning | Unit | Default value |
---|---|---|---|---|
MIT | Max Insert Time |
The maximum time during which the communication process tries to send a |
request for data. After |
this time had elapsed, the request |
that was not answered is ignored (and a communication error is marked on a line) |
. | ms | 10000 |
MTT | Max Trans Time | Maximum waiting time for response to the request from SLC. After |
this time had elapsed, the response |
is considered to be lost (and a communication error is marked on a line). | s | 20 | ||
BR | Block Read | Enables to read data in blocks, which is faster. | YES/NO | NO |
BL | Block Length |
The maximum length of the block in bytes. The value must be an even number in the range of 2 to 255. | - | 120 |
IOR | IO Reading | The reading of the files of I and O types on SLC 5/02 requires different |
types of functions than SLC 5/03 and higher. Set YES for SLC 5/02. | YES/NO | NO |
A string with the protocol parameters is written as follows:
Key_word=value;Key_word=value; ...
Example:
BR=YES;BL=200
If the key word keyword with the valid value has not been find found in the initial parameter string, a the default value is used.
Note:
The parameter BR enables the block reading. It is useful used for speedup of communication. Some problems may occur , if there is configured an I/O tag with the a non absent -existent address (it has not any image is configured (an address that does not exist in SLC). SLC do will not send any data and if the required value, containing the absent address, a non-existent address is read in a block together with other I/O tags, so these I/O tags will no have not any value either. D2000 KOM writes an error:
Blok kódu | ||||
---|---|---|---|---|
| ||||
Read packet without data, Node: NodeId Type FileType File: FileId Elem: ElemId SubElem: SubElemId |
From these this information, you can find out the source of the problem - which addresses (and which file type) and in which SLC causes problems.
Kotva | ||||
---|---|---|---|---|
|
...
Possible I/O tags: Ai, Ao, Ci, Co, Di, Dout.
The address of the I/O tag is a text in a format an SLC-500 format. The address format is:
[$] X [file] : element [.field] [/bit]
Explanatory notes:
$ | - optional character |
X | - file identifier (required - see Table 2) |
file | - file number (optional, if it is empty, the default file number is used - see Table 2) |
element | - an element number in the file (required) |
.field | - a number of sub-element (optional, it is used only for Output, Input files) |
/bit | - bit number (optional, it must be in the range of 0..15) |
Table 2
X | File Type | Default file number (file) |
---|---|---|
O | Output | 0 |
I | Input | 1 |
S | Status | 2 |
B | Binary | 3 |
T | Timer | 4 |
C | Counter | 5 |
N | Integer | 7 |
F | Float | 8 |
File type - Output
[$]O[n]:e[.s][/b]
"n" - the file number, if there is used other than it is different from the default number 0,
"e" - the number of an element in a file,
"s" - number of sub-element (0..255),
"b" - bit number (0..15).
Example:
O:2 $O0:2/0 O:1.0/1
Note: The files of the Output type are read-only.
...
File type - Input
[$]I[n]:e[.s][/b]
"n" - the file number, if there is used other than it is different from the default number 1,
"e" - the number of an element in a file,
"s" - the number of sub-element (0..255),
"b" - the bit number (0..15).
Example:
I:1 $I1:2/0 I:2.0/15
Note: The files of the Input type are read-only.
...
File type - Status
[$]S[n]:e[/b]
"n" - the file number, if there is used other than it is different from the default number 2,
"e" - the number of an element in a file,
"b" - the bit number (0..15).
Example:
S:0 $S2:40 S:2/15
Note: As regards for the files of Status type, data can not be written bit-by-bit (input tags with the parameter [/b]).
File type Binary
[$]B[n]:e[/b]
"n" - the file number, if there is used other than it is different from the default number 3,
"e" - the number of an element in a file,
"b" - the bit number (0..15).
Example:
...
File type - Timer
[$]T[n]:e[/b]
"n" - the file number, if there is used other than it is different from the default number 4,
"e" - the number of an element in a file,
"b" - the optional prefix /EN, /TT, /DN (bit values) or /PRE, /ACC (integer values).
...
File type - Counter
[$]C[n]:e[/b]
"n" - the file number, if there is used other than it is different from the default number 5,
"e" - the number of an element in a file,
"b" - the optional prefix /DN, /CU, /CD, /OV, /UN, /UA (bit values) or /PRE, /ACC (integer values).
...
File type - Integer
[$]N[n]:e[/b]
"n" - the file number, if there is used other than it is different from the default number 7,
"e" - the number of an element in a file,
"b" - the bit number (0..15).
Example:
...
File type - Float
[$]F[n]:e
"n" - the file number, if there is used other than it is different from the default number 7 8,
"e" - the number of an element in a file.
Example:
F:0 $F8:0 F29:1
...
- Copy the file "KMFB02DH.SYS" into the directory "\WINNT\SYSTEM32\DRIVERS".
- Import the registers from "KMFB02DH.REG" by a system utility "regedit".
Click on "Start" button in Windows, "Run...", write "regedit" and press Enter key.
In the menu of utility "regedit" click on "Registry" and "Import registry file...". Choose "KMFB02DH.REG". - Restart your computer.
Note: KMFB-02 card uses the INT 5 interrupt. When it Itit is already occupied, it must be released (INT 5 is not usually used, only for LPT2 or LAN card).
...
- Ver. 1.0 - February 7, 2001 - Document creating.
Info | ||
---|---|---|
| ||
...