12.07.2015 Views

RAPID reference manual - Technology

RAPID reference manual - Technology

RAPID reference manual - Technology

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

InstructionPackDNHeaderFieldbus Command InterfacePackDNHeader - Pack DeviceNet Header into rawbytes dataPackDNHeader is used to pack the header of a DeviceNet explicit message into a ‘container’of type rawbytes.The data part of the DeviceNet message can afterwards be set with the instructionPackRawBytes.ExampleVAR rawbytes raw_data;PackDNHeader “0E”, "6,20 01 24 01 30 06,9,4", raw_data;Pack the header for DeviceNet explicit message with service code "0E" and pathstring "6,20 01 24 01 30 06,9,4" into raw_data corresponding to get the serialnumber from some I/O unit.This message is ready to send without filling the message with additional data.VAR rawbytes raw_data;PackDNHeader “10”, "20 1D 24 01 30 64", raw_data;Pack the header for DeviceNet explicit message with service code "10" and pathstring "20 1D 24 01 30 64" into raw_data corresponding to set the filter time forthe rising edge on insignal 1 for some I/O unit.This message must be increased with data for the filter time.This can be done with instruction PackRawBytes starting at index RawBytesLen(raw_data)+1 (done after PackDNHeader).ArgumentsPackDNHeaderService Path RawDataServiceData type: stringThe service to be done such as get or set attribute.To be specified with a hexadecimal code in a string e.g. “1F”String length:Format:Range:2 characters’0’ - ’9’, ’a’ -’f’, ’A’ - ’F’"00" - "FFThe values for the Service is found in the EDS file. For a more detailed descriptionsee the Open DeviceNet Vendor Association “DeviceNet Specification rev.2.0”.<strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1a, Instructions A-R 313

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!