README

mokomoking2501/profinet_master/record does not have a README file

#
IODControlReq

pub(all) struct IODControlReq {
ar_uuid :
Uuid

session_key : Int
control_command : Int
control_block_properties : Int
} derive(Eq,
Debug
)

IOD Control Request — used for PrmEnd, ApplicationReady, Release.

#
IODReadReqHeader

pub(all) struct IODReadReqHeader {
seq_number : Int
ar_uuid :
Uuid

api : Int
slot_number : Int
subslot_number : Int
index : Int
record_data_length : Int
} derive(Eq,
Debug
)

IOD Read Request Header.

#
IODReadResHeader

pub(all) struct IODReadResHeader {
seq_number : Int
ar_uuid :
Uuid

api : Int
slot_number : Int
subslot_number : Int
index : Int
record_data_length : Int
additional_value1 : Int
additional_value2 : Int
} derive(Eq,
Debug
)

IOD Read Response Header.

#
IODWriteReqHeader

pub(all) struct IODWriteReqHeader {
seq_number : Int
ar_uuid :
Uuid

api : Int
slot_number : Int
subslot_number : Int
index : Int
record_data_length : Int
} derive(Eq,
Debug
)

IOD Write Request Header.

#
ReleaseBlockReq

pub(all) struct ReleaseBlockReq {
ar_uuid :
Uuid

session_key : Int
control_command : Int
control_block_properties : Int
} derive(Eq,
Debug
)

Release Block Request.

#
block_type_iod_control_req

let block_type_iod_control_req : Int

#
block_type_iod_control_res

let block_type_iod_control_res : Int

#
block_type_iod_read_req_header

let block_type_iod_read_req_header : Int

#
block_type_iod_read_res_header

let block_type_iod_read_res_header : Int

#
block_type_iod_write_req_header

let block_type_iod_write_req_header : Int

Block types for record operations.

#
block_type_iod_write_res_header

let block_type_iod_write_res_header : Int

#
block_type_release_req

let block_type_release_req : Int

#
block_type_release_res

let block_type_release_res : Int

#
control_command_application_ready

let control_command_application_ready : Int

#
control_command_done

let control_command_done : Int

#
control_command_label

fn control_command_label(cmd : Int) -> String

#
control_command_prmend

let control_command_prmend : Int

I/O control commands.

#
control_command_release

let control_command_release : Int

#
encode_iod_control_req

fn encode_iod_control_req(req : IODControlReq) -> Bytes

Encode IOD Control Request body.

#
encode_iod_read_req_header

fn encode_iod_read_req_header(req : IODReadReqHeader) -> Bytes

Encode IOD Read Request Header (block body, 58 bytes).

#
encode_iod_write_req_header

fn encode_iod_write_req_header(req : IODWriteReqHeader) -> Bytes

Encode IOD Write Request Header (block body, 38 bytes).

#
encode_iod_write_req_with_data

fn encode_iod_write_req_with_data(req : IODWriteReqHeader, record_data : Bytes) -> Bytes

Encode IOD Write Request Header plus RecordDataWrite bytes.

This mirrors the C# ak block used by DceClient.Write: the fixed header is 58 bytes, followed by the user-specified record data. The surrounding IO block length field must still exclude the user data bytes.

#
encode_release_block_req

fn encode_release_block_req(req : ReleaseBlockReq) -> Bytes

Encode Release Block Request body (same layout as IOD Control).

#
format_iod_control

fn format_iod_control(req : IODControlReq) -> String

Format IOD Control summary.

#
format_iod_read_req

fn format_iod_read_req(req : IODReadReqHeader) -> String

Format IOD Read Request summary.

#
index_diagnosis

let index_diagnosis : Int

#
index_expected_identification

let index_expected_identification : Int

#
index_iam0

let index_iam0 : Int

Common record indices.

#
index_iam1

let index_iam1 : Int

#
index_iam2

let index_iam2 : Int

#
index_iam3

let index_iam3 : Int

#
index_iam4

let index_iam4 : Int

#
index_logbook

let index_logbook : Int

#
index_multiple_write

let index_multiple_write : Int

MultipleWrite wrapper record index used during parametrization.

#
index_real_identification

let index_real_identification : Int

#
parse_iod_control_req

fn parse_iod_control_req(data : Bytes, offset : Int) -> IODControlReq raise
FrameError

Parse IOD Control Request from body bytes.

#
parse_iod_read_res_header

fn parse_iod_read_res_header(data : Bytes, offset : Int) -> IODReadResHeader raise
FrameError

Parse IOD Read Response Header from body bytes.