Download 5370-ND002, Bulletin 5370 CVIM Configurable Vision Input Module
Transcript
Chapter 5 Using the RS–232 Ports Echoing Data (cont’d) of 1 is assumed. d is the data that is to be echoed. The command is valid at any time. For example: >E2,HELLO [CR] This example will cause the CVIM module to return the string: [CR] [LF] HELLO [CR] [LF] HELLO [CR] [LF] If you do not have the proper command structure the CVIM module will return: ?[CR] [LF] Enable/Disable Outputs Use this command to enable or disable outputs on the Local I/O Board (Catalog No. 1771–JMB). Use the following commands: > EO [CR] This command enables the outputs. > DO [CR] This command disables the outputs. After executing the command, the CVIM module will return: [CR] [LF]. No data is returned. If you do not have the proper command structure, the CVIM module will return: ?[CR][LF]. Forcing Local I/O Use the force command to turn the local I/O outputs either on or off. This function can only be executed once per command. Use one of the following commands: > F,On,1 [CR] Forces output(s) on. > F,On,0 [CR] Forces output(s) off. Where n is the output being forced on or off, outputs 1 through 14. n = 1 to 14 X–Y * (individual outputs, can be non-consecutive) (range of outputs X through Y) (all of the outputs) For example: > F,O*,1 [CR] 5–8 This example will force all outputs on.