fix contant usage in iec61131ramps and add check function to test.py