20 #ifndef _RL_SIEMENS_TCP_H_ 21 #define _RL_SIEMENS_TCP_H_ 166 int write(
int org,
int dbnr,
int start_adr,
int length,
const unsigned char *buf,
int function=
WriteByte);
167 int fetch(
int org,
int dbnr,
int start_adr,
int length,
unsigned char *buf);
171 int write_iso(
unsigned char *buf,
int len);
173 int write_bit(
int& i,
int org,
int dbnr,
int start_adr,
int len,
const unsigned char *buf);
174 int write_byte(
int& i,
int org,
int dbnr,
int start_adr,
int length,
const unsigned char *buf);
184 unsigned char ident[2];
193 unsigned char start_adr[2];
194 unsigned char len[2];
200 unsigned char ident[2];
210 unsigned char spare2[5];
214 unsigned char ident[2];
223 unsigned char start_adr[2];
224 unsigned char len[2];
230 unsigned char ident[2];
240 unsigned char spare2[5];
252 unsigned char cb[22];
unsigned char ack_block_len
unsigned char error_block
unsigned char len_org_block
int write_iso(unsigned char *buf, int len)
unsigned char ident_org_block
unsigned char ack_block_len
unsigned char error_block
unsigned char op_code_len
unsigned char len_org_block
unsigned char op_code_len
int read_iso(unsigned char *buf)
int setConnectBlock(const unsigned char *connect_block)
int getConnectBlock(unsigned char *connect_block)
int getDefaultConnectBlock(unsigned char *connect_block)
int write_bit(int &i, int org, int dbnr, int start_adr, int len, const unsigned char *buf)
unsigned char ident_op_code
int fetch(int org, int dbnr, int start_adr, int length, unsigned char *buf)
unsigned char ident_op_code
unsigned char ident_op_code
unsigned char ident_op_code
unsigned char op_code_len
int write_byte(int &i, int org, int dbnr, int start_adr, int length, const unsigned char *buf)
int write(int org, int dbnr, int start_adr, int length, const unsigned char *buf, int function=WriteByte)
unsigned char op_code_len
unsigned char length_high
unsigned char ident_org_block
rlSiemensTCP(const char *adr, int _plc_type=rlSiemensTCP::ANY_SIEMENS_COMPATIBLE_PLC, int _fetch_write=1, int function=-1, int rack_slot=-1)