BASEstartm Classic DAS
for Allen-Bradley
INTERCHANGEtm Software
Installation and User's Guide


Previous Contents Index

3.2.1 Read and Write Data Functions

Use the BASEstar Classic device connection management read data and write data functions to read data from and write data to a specific address in device memory. Address syntax is specific to each device or device family.

3.2.1.1 PLC-5/250 and PLC-5 Addressing

The general format for specifying addresses for the PLC-5/250 family devices is:


$mFSf:nn/bb 

or


$mFSf:rr/bb 

or


$mFSf:nn.mne 

The general format for specifying addresses for the PLC-5 family devices is:


$FSf:nn/bb 

or


$FSf:rr/bb 

or


$FSf:nn.mne 
where:

m---module number - used for the PLC-5/250 only.
FS---file specifier - specifies the device file type
f ---decimal file number
nn---decimal element number
rr---octal rack number
bb---bit address - octal if following rr, decimal if following nn
mne---sub-element or bit mnemonic

The file specifiers for the PLC-5/250 and the PLC-5 family that are supported by the DAS for AB INTERCHANGE software are listed in Table 3-2.

Table 3-2 PLC-5 Supported Section Files
Section Mnemonic Native data type Raw Size in bytes
      PLC-5/250 PLC-5 family
System Status S Signed word 2 2
Binary B Signed word 2 2
Integer N Signed word 2 2
ASCII A Signed word --- 2
BCD D BCD --- 2
Long L Signed Long 4 ---
Floating Point F IEEE single precision 4 4
Timer T Structure 12 6
Counter C Structure 6 6
Message MSG Structure 112 ---
Message MG Structure --- 112 1
Control R Structure 6 6
PID PD Structure 164 164 1
String ST Structure 84 84 1
Input Image I Signed word 2 2
Output Image O Signed word 2 2


1Not available for PLC-5 models 10, 12, 15 and 25.

For specific information regarding the addressing syntax for the Allen-Bradley PLC-5/250 and the PLC-5 family, refer to Allen-Bradley documentation for those devices.

3.2.1.2 SLC Addressing

The general format for specifying addresses for the SLC family devices is:


$FSf:nn/bb 

or


$FSf:nn.mne 
where:

FS---file specifier - specifies the device file type
f ---decimal file number
nn---decimal element number
bb---decimal bit address
mne---sub-element or bit mnemonic

The file specifiers for the SLC family that are supported by the DAS for AB INTERCHANGE software are listed in Table 3-3.

Table 3-3 SLC Supported Section Files
Section Mnemonic Native data type Raw Size in bytes
System Status S Signed word 2
Binary B Signed word 2
Integer N Signed word 2
ASCII A Signed word 2
BCD D BCD 2
Floating Point F IEEE single precision 4
Timer T Structure 6
Counter C Structure 6
Control R Structure 6
String ST Structure 84
Input Image I Signed word 2
Output Image O Signed word 2

For specific information regarding the addressing syntax for the Allen-Bradley SLC family, refer to Allen-Bradley documentation for those devices.

3.2.1.3 PLC-3 Addressing

The INTERCHANGE software supports extended addressing only for the PLC-3 family of devices. The general format for extended addressing is:


EM.S.S.S.S.W/B 
where:

E---extended address indicator
M---major area number
S---subarea designation
W---word address
B---bit address

A major area of 3 is used for data table addressing. For data table addressing, the first subarea is the context (1-15). The second subarea is the section, the third subarea is the file number, the fourth subarea is the structure number (for timers, counters, floating point, high order integer and pointers) and the fifth subarea is the word address (for output, input, integers, decimal, binary, ASCII, and status). Table Table 3-4 shows data table sections supported for the PLC-3 family of PLCs.

Table 3-4 PLC-3 Supported Section Files
Section Subarea Native data type Raw Size in bytes
Output 1 Signed word 2
Input 2 Signed word 2
Timer 3 Structure 6
Counter 4 Structure 6
Integer 5 Signed word 2
Floating 6 VAX float 4
Decimal 7 Signed word 2
Binary 8 Signed word 2
ASCII 9 Signed word 2
High order integer 10 Signed long 4
Pointers 12 Signed long 4
Status 13 Signed word 2

For specific information regarding the addressing syntax for the Allen-Bradley PLC-3 family, refer to Allen-Bradley documentation for those devices.

3.2.1.4 PLC-2 Addressing

The INTERCHANGE software supports the following addressing format for PLC-2 family devices:


W/B 
where:

W---word number (octal)
B---bit address (octal)

3.2.1.5 Reading and Writing Data

Table 3-5 describes how to access the read and write data functions through the BASEstar Classic interfaces.

Table 3-5 Read and Write Data Interface Access
Interface Function Name
CLI READ DATA
  READ PHYPOINT
  WRITE DATA
  WRITE PHYPOINT
API ILAN$READ_DATA
  ILAN$READ_DATA_A
  ILAN$GET_DATA
  ILAN$WRITE_DATA
  ILAN$WRITE_DATA_A
  ILAN$PUT_DATA
Menu DCM Devices Read Register
  DCM Devices Read Phypoint
  DCM Devices Write Register
  DCM Devices Write Phypoint

Example 3-1 shows the information displayed when you enter the READ DATA command.

Example 3-1 READ DATA Output

DCM> READ DATA DTL5/FORMAT=WORD/ADDRESS="$N17:0"/NUMBER=20
  
Device      : DTL5 
Address     : $N17:0 
Format      : ARRAY[20]:S_WORD 
  
Data:  
    0       :        5        3        7      495     3504      495      366 
    7       :      297     6252      222     8771     5132      495     5133 
   14       :      495     5135      495     5139      495        0 

Example 3-2 shows the information displayed when you enter the WRITE DATA command.

Example 3-2 WRITE DATA Output

DCM> WRITE DATA DTL5/FORMAT=BIT/ADDRESS="$B3:1/2"
 
Device      : DTL5 
Address     : $B3:1/2 
Format      : BIT 
 
Data value     0       :        1 


Previous Next Contents Index