Class CIP

java.lang.Object
javaforce.controls.ab.CIP

public class CIP extends Object
CIP : Connection Manager : Request
Author:
pquiring
  • Field Details

    • cmd

      public byte cmd
    • count

      public byte count
    • path_1

      public byte path_1
    • class_1

      public byte class_1
    • path_2

      public byte path_2
    • class_2

      public byte class_2
    • reserved1

      public byte reserved1
    • reserved2

      public byte reserved2
    • reserved3

      public byte reserved3
    • type

      public byte type
    • reserved

      public byte reserved
    • data

      public byte[] data
    • attrs

      public byte[][] attrs
    • ticktime

      public byte ticktime
    • ticktimeout

      public byte ticktimeout
    • sub_cmd_len

      public short sub_cmd_len
    • sub_cmd

      public byte sub_cmd
    • data_words

      public byte data_words
    • segments

      public javaforce.controls.ab.CIP.TagSegment[] segments
    • route_size

      public byte route_size
    • route_res

      public byte route_res
    • route_seg

      public byte route_seg
    • route_addr

      public byte route_addr
    • attr_count

      public short attr_count
    • attr_clock

      public short attr_clock
    • clock

      public long clock
    • CMD_UNCONNECTED_SEND

      public static final byte CMD_UNCONNECTED_SEND
      See Also:
    • SUB_CMD_READTAG

      public static final byte SUB_CMD_READTAG
      See Also:
    • SUB_CMD_WRITETAG

      public static final byte SUB_CMD_WRITETAG
      See Also:
    • SUB_CMD_GET_ATTR

      public static final byte SUB_CMD_GET_ATTR
      See Also:
    • SUB_CMD_SET_ATTR

      public static final byte SUB_CMD_SET_ATTR
      See Also:
  • Constructor Details

    • CIP

      public CIP(byte _cmd, byte _sub_cmd)
  • Method Details

    • getSize

      public int getSize()
    • write

      public void write(byte[] packet, int offset) throws Exception
      Throws:
      Exception
    • setRead

      public void setRead(String tag)
    • setWrite

      public void setWrite(String tag, byte type, byte[] data)
    • setReadClock

      public void setReadClock()
    • setWriteClock

      public void setWriteClock()
    • readReplyReadTag

      public void readReplyReadTag(byte[] data, int offset) throws Exception
      Throws:
      Exception
    • readReplyWriteTag

      public void readReplyWriteTag(byte[] data, int offset) throws Exception
      Throws:
      Exception
    • readReplyGetAttrs

      public void readReplyGetAttrs(byte[] data, int offset) throws Exception
      Throws:
      Exception
    • readReplySetAttrs

      public void readReplySetAttrs(byte[] data, int offset) throws Exception
      Throws:
      Exception