Skip to content

Instantly share code, notes, and snippets.

@katsuyoshi katsuyoshi/mk_keyence_ladder.rb Secret
Last active Mar 22, 2016

Embed
What would you like to do?
generage ladder mnemonic for KEYENCE
puts "DEVICE:52"
puts ";MODULE:NewMain"
puts ";MODULE_TYPE:0"
("R000".."R007").zip("R500".."R507").each do |i, o|
puts "LD #{i}"
puts "OUT #{o}"
end
puts "END"
puts "ENDH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.