Previous | Contents | Index |
Address syntax and supported device connection management data types for read and write operations vary between the SLC-5/04 and SLC-5/03 and other models of the SLC family of devices.
The following sections describe the use of the read data and write data functions by specific devices, including addressing and data type formats. Addressing and data type formats are necessary for performing the read data and write data functions for the SLC family of devices.
Table 3-26 shows which data type formats are supported for reading from and writing to the various file types of the SLC family.
Device File Type | Bit | Word | Long | Float | String |
---|---|---|---|---|---|
Status | X | X | |||
Binary | X | X | |||
Timer | X | X | |||
Counter | X | X | |||
Control | X | X | |||
Integer | X | X | X | X | |
Floating Point | X | ||||
ASCII | X | ||||
String | X |
ASCII, String and Floating Point are available only on SLC 5/03 Series C with OS301 and SLC 5/04 Series A with OS400. |
The general format for specifying addresses for the SLC family devices is:
FSf:nn/bb or FSf:nn.mne |
where:
The following tables describe address specifications and data types for specific SLC family file types. Refer to the general address formats listed above for a description of the conventions used to describe address specifications.
Table 3-27 describes address specifications and data types for status file addresses.
Address | Format | Comment |
---|---|---|
mS:nn | Word | Status file word |
mS:nn/bb | Bit | Status file bit |
Table 3-28 describes address specifications and data types for binary file addresses.
Address | Format | Comment |
---|---|---|
mBf:nn | Word | Binary file word |
mBf:nn/bb | Bit | Binary file bit |
Table 3-29 describes address specifications and data types for timer file addresses. Timers can be read as entire structures or addressed at the sub-element level.
Address | Format | Comment |
---|---|---|
Tf:nn | Struct(Array[3]:word) | Timer structure |
Tf:PRE | Word | Timer preset |
mTf:PRE/bb | Bit | Timer preset bit |
Tf:ACC | Word | Timer accumulator |
mTf:ACC/bb | Bit | Timer accumulator bit |
mTf:EN 1 | Bit | Timer enable bit |
mTf:TT 1 | Bit | Timer timing bit |
mTf:DN 1 | Bit | Timer done bit |
Table 3-30 describes address specifications and data types for counter file addresses. Counters can be read as entire structures or addressed at the sub-element level.
Address | Format | Comment |
---|---|---|
mCf:nn | Struct(Array[3]:word) | Entire counter structure |
mCf:PRE | Word | Counter preset |
mCf:PRE/bb | Bit | Counter preset bit |
mCf:ACC | Word | Counter accumulator |
mCf:ACC/bb | Bit | Counter accumulator bit |
mCf:CU 1 | Bit | Counter up enable bit |
mCf:CD 1 | Bit | Counter down enable bit |
mCf:DN 1 | Bit | Counter done bit |
mCf:OV 1 | Bit | Counter overflow bit |
mCf:UN 1 | Bit | Counter underflow bit |
mCf:UA 1 | Bit | Counter update accumulator bit |
Table 3-31 describes address specifications and data types for control file addresses.
Address | Format | Comment |
---|---|---|
mRf:nn | Struct(Array[3]:word) | Entire control structure |
mRf:nn.LEN | Word | Control expression files length |
mRf:nn.LEN/bb | Bit | Length bit |
mRf:nn.POS | Word | Control expression file position |
mRf:nn.POS/bb | Bit | Position bit |
mRf:nn.EN 1 | Bit | Enabled bit |
mRf:nn.EU 1 | Bit | Enabled unloading bit |
mRf:nn.DN 1 | Bit | Done bit |
mRf:nn.EM 1 | Bit | Empty bit |
mRf:nn.ER 1 | Bit | Error bit |
mRf:nn.UL 1 | Bit | Unload bit |
mRf:nn.IN 1 | Bit | Inhibit comparisons bit |
mRf:nn.FD 1 | Bit | Found bit |
Previous | Next | Contents | Index |