omron — FCMND program instruction

FCMND program instruction $error[10] = "Error reading device type" $error[11] = "Invalid product code" $error[12] = "Error reading product code" $error[13] = "Invalid I/O input size for connection 1" $error[14] = "Error reading I/O input size for connection 1" $error[15] = "Invalid I/O output size for connection 1" $error[16] = "Error reading I/O output size for connection 1" $error[17] = "Invalid I/O input size for connection 2" $error[18] = "Error reading I/O input size for connection 2" $error[19] = "Invalid I/O output size for connection 2" $error[20] = "Error reading I/O output size for connection 2" $error[21] = "Error setting I/O packet rate for connection 1" $error[22] = "Error setting I/O packet rate for connection 2" $error[23] = "M/S connection set sync fault" ; Report the status of DeviceNet.

ATTACH (lun, 4) "DEVICENET" ;Attach the device IF IOSTAT(lun) 0 GOTO 100 FCMND (lun, 760) $INTB(macid), $input ;Get the status IF IOSTAT(lun) 0 THEN TYPE "No node with MacId", macid ELSE status = ASC($input) TYPE "MacID", macid, " status: ", $error[status] END DETACH (lun) ;Release the device Examples Return modem control bit flags for the serial port attached to logical unit 10: FCMND (10,106), $temp flags = ASC($temp) Format the disk loaded in drive A in double-sided, double-density format and return the string containing the bad-block count in $bad: FCMND (5, 8) "A:/Q", $bad Specifya DDCMP time-out interval of 2 seconds, with maximums of 20 time-outs and 8 NAK retries.

eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 228