omron — Input Parameters

V+ AceServer Module Documentation Example .PROGRAM ex1() ; ABSTRACT: Demonstrate comparing a signal to an expected value ; ; INPUTS: AUTO REAL my.signal1 = 1001 AUTO REAL my.signal2 = 1002 AUTO REAL is.off, is.on ; Check a signal is not at an incorrect value. This is checking an error case ; In emulator mode, is.off will always be true and program will not generate errors CALL sv.sig.is.equal(my.signal1, FALSE, is.off) IF NOT is.off THEN TYPE "input is not at the correct state : it is on and should be off." END ; wait a signal is at the expected value. If emulation mode is active, true will be returned and program can continue.

; In normal mode, the signal is read periodically and is compared to expected value. DO CALL sv.sig.is.equal(my.signal2, TRUE, is.on) UNTIL is.on .END sv.write(handle, ptr) Abstract Write a message to the client. Input Parameters Parameter Description handle Index of the message to read from ptr Position in the message buffer to read at Output Parameters None sv.write_abyte($string[], offset, count, handle, ptr) Abstract Read an array of 16-bit integers from the message buffer. The message pointer is incremented after the read. Input Parameters Parameter Description ACE Reference Guide, 18317-000 Rev A Page 735