Methods or devices for detecting wire or workpiece position