Instantly share code, notes, and snippets.

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