12.07.2015 Views

RAPID reference manual - Technology

RAPID reference manual - Technology

RAPID reference manual - Technology

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PackRawBytesFile and Serial Channel HandlingInstructionArgumentsPackRawBytesValueValue RawData [ \Network ] StartIndex [ \Hex1 ] | [ \IntX ] | [ \Float4 ] | [ \ASCII ]Data type: anytypeVariable containing the data to be packed into RawData.Allowed data types are: num, byte or string.RawDataData type: rawbytesVariable container to be packed with data.[ \Network ] Data type: switchIndicates that integer and float shall be packed in big-endian (network order) representationin RawData. ProfiBus and InterBus use big-endian.Without this switch, integer and float will be packed in little-endian (not networkorder) representation in RawData. DeviceNet use little-endian.Only relevant together with option parameter \IntX - UINT, UDINT, INT, DINTand \Float4.StartIndexData type: numStartIndex, between 1 and 1024, indicates where the first byte contained in Valueshall be placed in RawData.[ \Hex1 ] Data type: switchThe Value to be packed has byte format and shall be converted to hexadecimalformat and stored in 1 byte in RawData.[ \IntX ] Data type: inttypesThe Value to be packed has num format, is an integer and shall be stored accordingthe specified constant of data type inttypes, in RawData.See predefined data below.[ \Float4 ] Data type: switchThe Value to be packed has num format and shall be stored as float, 4 bytes, inRawData.[ \ASCII ] Data type: switchThe Value to be packed has byte or string format.If the Value to be packed has byte format, it will be stored in RawData as 1 byte318 <strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1a, Instructions A-R

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

Saved successfully!

Ooh no, something went wrong!