Text this: Interpreting ladder logic