13.07.2015 Views

Concurrent I/O•Parameter - Motoman

Concurrent I/O•Parameter - Motoman

Concurrent I/O•Parameter - Motoman

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.

1.13 Standard Ladder ProgramFormatDIV InstructionDIV S1, S2, DFunctionS1: Source 1 Register (M000-M161)Decimal (0-65535)S1: Source 2 Register (M000-M161)Decimal (0-65535)D: Destination (Quotient) Register (M000-M099, M150-M161)S1 and S2 (16 bits unsigned binary data) are divided and the devision result(Quotient) is outputto D when input signal is at ON state. As a result of calculation, the error flag (#5262) of aspecific output are changed. The carry flag (#5260) and the zero flag (#5261) are not used.Unused flag is cleared.Ladder Program ExampleS1 S2 D Carry Flag Zero Flag Error Flag0-65535 Excepted for 0 Quotient Not Used(0) Not Used(0) 00-65535 0 No changes Not Used(0) Not Used(0) 1NOTEThe multiple outputs of the register used as a current position of the TMR instruction andthe CNT instruction cannot be used.#7010M000M001DIVM010< Program>STR #7010DIV M000,M001,M0101-98

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

Saved successfully!

Ooh no, something went wrong!