com.langner.jmatic2
Class FetchWriteRFC1006Settings

java.lang.Object
  extended bycom.langner.jmatic2.FetchWriteRFC1006Settings

public final class FetchWriteRFC1006Settings
extends java.lang.Object

This class is used to preparing the settings for a new FetchWrite object for a PC/PLC communication using a RFC1006 connection (ISO-On-TCP). Note: For build up an RFC1006(ISO-On-TCP) connection the JMatic product 'ISO On TCP' (containing the classes RFC1006 and RFC1006TCPSettings) is required.

Version:
2.0
Author:
Langner Communications AG
Copyright:
Langner (c) 2001-2005

Field Summary
static java.lang.String TSAP_NOT_USED
          This is the value for TSAPs which are not used.
 
Constructor Summary
FetchWriteRFC1006Settings(java.net.InetAddress address, java.lang.String remoteTSAPFetch, java.lang.String localTSAPFetch, java.lang.String remoteTSAPWrite, java.lang.String localTSAPWrite)
          Constructs an initialized object.
 
Method Summary
 java.net.InetAddress getInetAddress()
          Returns the network address for connecting the PLC.
 java.lang.String getLocalTSAPFetch()
          Returns the local RFC1006 TSAP (FETCH commands) for connecting the remote PLC.
 java.lang.String getLocalTSAPWrite()
          Returns the local RFC1006 TSAP (WRITE commands) for connecting the remote PLC.
 java.lang.String getRemoteTSAPFetch()
          Returns the remote RFC1006 TSAP (FETCH commands) for connecting the remote PLC.
 java.lang.String getRemoteTSAPWrite()
          Returns the remote RFC1006 TSAP (WRITE commands) for connecting the remote PLC.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TSAP_NOT_USED

public static final java.lang.String TSAP_NOT_USED
This is the value for TSAPs which are not used. Use this value for remoteTSAPWrite and localTSAPWrite if a write connection is not needed. Use this value for remoteTSAPFetch and localTSAPFetch if a fetch connection is not needed.

Constructor Detail

FetchWriteRFC1006Settings

public FetchWriteRFC1006Settings(java.net.InetAddress address,
                                 java.lang.String remoteTSAPFetch,
                                 java.lang.String localTSAPFetch,
                                 java.lang.String remoteTSAPWrite,
                                 java.lang.String localTSAPWrite)
                          throws JMaticException
Constructs an initialized object. This constructor initializes the properties with the supplied values. The initalized FetchWriteTCPSettings object will be used to construct and initialize a new FetchWrite object. Note: You may use the Fetch/Write protocol for accessing either a Siemens S5 via the CP1430 or a Siemens S7 via the CP343/443. If you want read and write data from the plc please note that two connections must be configured in the Simatic manager (NetPro), one for the Fetch connection and one for the Write connection.

Parameters:
address - The internet address of the remote PLC. You can obtain a valid address for a given hostname by calling InetAddress.getByName()
remoteTSAPFetch - The remote RFC1006 TSAP for a Fetch connection. If you don't want a fetch connection use the predefined value
localTSAPFetch - The local RFC1006 TSAP for a Fetch connection. If you don't want a fetch connection use the predefined value
remoteTSAPWrite - The remote RFC1006 TSAP for a Fetch connection. If you don't want a write connection use the predefined value
localTSAPWrite - The local RFC1006 TSAP for a Write connection. If you don't want a write connection use the predefined value
Throws:
JMaticException - if portfetch and portwrite are equal.
See Also:
TSAP_NOT_USED., TSAP_NOT_USED., TSAP_NOT_USED., TSAP_NOT_USED.
Method Detail

getInetAddress

public java.net.InetAddress getInetAddress()
Returns the network address for connecting the PLC.

Returns:
InetAddress

getRemoteTSAPWrite

public java.lang.String getRemoteTSAPWrite()
Returns the remote RFC1006 TSAP (WRITE commands) for connecting the remote PLC.

Returns:
Remote TSAP for the write connection

getLocalTSAPWrite

public java.lang.String getLocalTSAPWrite()
Returns the local RFC1006 TSAP (WRITE commands) for connecting the remote PLC.

Returns:
Local TSAP for the write connection

getLocalTSAPFetch

public java.lang.String getLocalTSAPFetch()
Returns the local RFC1006 TSAP (FETCH commands) for connecting the remote PLC.

Returns:
Local TSAP for the fetch connection

getRemoteTSAPFetch

public java.lang.String getRemoteTSAPFetch()
Returns the remote RFC1006 TSAP (FETCH commands) for connecting the remote PLC.

Returns:
Remote TSAP for the fetch connection


Copyright © 2001-2005 Langner Communications AG. All Rights Reserved.