13.07.2015 Views

[Instruction] Contents

[Instruction] Contents

[Instruction] Contents

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Advanced Function <strong>Instruction</strong>FUN 64 P→ASCIICONVERSION OF HEXADECIMAL VALUE TO ASCII CODEFUN 64 P→ASCIIConversion controlENLadder symbol64P. ASCIIS :N :D :S : Starting source registerN : Number of hexadecimal digit to be converted toASCII code.D : The starting register storing result.S, N, D, can associate with V, Z, P0~P9 to do theindirect addressing application.OperandRangeWX WY WM WS TMR CTR HR IR OR SR ROR DR K XRWX0∣WX240WY0∣WY240WM0∣WM1896WS0∣WS984T0∣T255C0∣C255R0∣R3839R3840∣R3903R3904∣R3967R3968∣R4167R5000∣R8071D0∣D409516-bit+ numberP0~P9S ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○N ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 1~511 ○D ○ ○ ○ ○ ○ ○ ○ ○* ○* ○ ○V、Z• When conversion control “EN” =1 or “EN↑” ( P instruction) changes from 0→1, will convert the Nsuccessive nibbles of hexadecimal value in registers start from S into ASCII code, and store the result tolow byte (high byte remain unchanged) of the registers which start from D.• The conversion will not be performed when the value of N is 0 or greater than 511.• The main purpose of this instruction is to convert the numerical value data, which PLC has processed, toASCII code and transmit to ASCII peripherals by communication port1 or communication port 2.7-45

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

Saved successfully!

Ooh no, something went wrong!