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 ProgramFormatBIN S, DFunctionBIN InstructionS: Source Register (M000-M161)Relay (byte) #XXX0Relay (word) W#XXX0D: Destination Register (M000-M099, M150-M161)Relay (byte) #XXX0Relay (word) W#XXX0S(BCD data) is converted to binary data and it is output to D when the input signal is at ONstate. As a result of calculation, the carry flag (#5260) and the error flag (#5262) of a specificoutput are changed. The zero flag (#5261) are not used.The carry flag is set when the conversion result is the relay(byte) and the conversion data ismore than 256 (BCD). Unused flag is cleared.Ladder Program ExampleS D Carry Flag Zero Flag Error FlagBCD BIN 0/1 Not Used(0) 0Excepted for BCD No Changes 0 Not Used(0) 1NOTEThe output cannot be done to the same relay two or more times.The multiple outputs of the register used as a current position of the TMR instruction andthe CNT instruction cannot be used.#7010M000BINM010< Program>STR #7010BIN M000,M0101-100

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

Saved successfully!

Ooh no, something went wrong!