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.

InstructionPackRawBytesFile and Serial Channel Handlinginterpreting Value as ASCII code for a character.If the Value to be packed has string format (1-80 characters), it will be stored inRawData as ASCII characters with the same number of characters as containedin Value. String data is not NULL terminated by the system in data of type rawbytes.It is up to the programmer to add string header if necessary (required forDeviceNet).One of argument \Hex1, \IntX, \Float4 or \ASCII must be programmed.The following combinations are allowed:Tabell 13Data type of Value:Allowed option parameters:num *)numstringbyte\IntX\Float4\ASCII (1-80 characters)\Hex1 \ASCII*) Must be integer within the value range of selected symbolic constant USINT, UINT,UDINT, SINT, INT or DINT.Program executionDuring program execution data is packed from the variable of type anytype into a ‘container’of type rawbytes.The current length of valid bytes in the RawData variable is set to:- (StartIndex + packed_number_of_bytes - 1)- The current length of valid bytes in the RawData variable is not changed , if thecomplete pack operation is done inside the old current length of valid bytes inthe RawData variable.Predefined dataThe following symbolic constants of the data type inttypes are predefined and can beused to specify the integer in parameter \IntX.<strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1a, Instructions A-R 319

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

Saved successfully!

Ooh no, something went wrong!