omron — FCMND program instruction

FCMND program instruction the input area (it is device-dependent), and count is the number of bytes to read. The input is returned by the string variable $input. See the MV Controller User's Guide for details on the MACID statement in DeviceNet configuration. 76- 3 Used for generic I/O to the DeviceNet scanner. This FCMND writes to the scanner output area. When the instruction FCMND(lun, 763) $INTB(macid)+$INTB(offset)+$INTB (count)+$output is executed, macid is the MAC ID to write to, offset is the write offset into the output area (it is device-dependent), and count is the number of bytes to write. The output bytes are contained in the string variable $output.

See the MV Controller User's Guide for details on the MACID statement in DeviceNet configuration. 76- 4 This command code provides the same support as command 761 except that it returns a 32-bit counter instead of a 16-bit counter. If FCMND 764 is used for an AWC controller, a 32-bit counter is returned, but the counter still rolls over at 16 bits. The syntax for this command is as follows: FCMND(lun, 764) "", $input This is used for reading the CanBus status. The CanBus is the bus upon which DeviceNet runs. The status is returned in $input. 76- 8 Used for determining the DeviceNet status with the following eV+ code:

AUTO lun, macid, status, $error[25], $input macid = 1 ;MacID for this example ; Define the status messages. $error[0] = "Device not in device list" $error[1] = "Device idle (not being scanned)" $error[2] = "Device being scanned" $error[3] = "Device timed-out" $error[4] = "UCMM connection error" $error[5] = "Master/Slave connection set is busy" $error[6] = "Error allocating Master/Slave connection set" $error[7] = "Invalid vendor id" $error[8] = "Error reading vendor id" $error[9] = "Invalid device type" eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 227