Omron NX701-1620 User Manual page 262

Machine automation controller nj/nx-series database connection cpu units
Hide thumbs Also See for NX701-1620:
Table of Contents

Advertisement

Appendix A
 Sample Programming
- Resend the SQL statements stored in the Spool memory when the status of the DB Connection is Connected.
Check the completion of the instruction.
Nosent
DB_GetConnectionStatus_instance.Error
DB_ControlSpool_instance.Done
DB_ControlSpool_instance.Error
Accept the trigger.
Trigger
Get the status of the DB Connection.
Operating
'MyDatabase1'
When the instruction is normally completed, change the Resend variable to TRUE if the status of the DB Connection is Connected.
Operating
DB_GetConnectionStatus_instance.Done
A-74
RS_instance
RS
Set
OperatingEnd
Reset1
DB_GetConnectionStatus_instance
DB_GetConnectionStatus
Execute
DBConnectionName
ConnectionStatus
_eDBC_CONNECTION_STATUS#_DBC_CONNECTION_STATUS_CONNECTED
_eDBC_CONNECTION_STATUS#_DBC_CONNECTION_STATUS_CONNECTED
Q1
Done
Busy
Error
ErrorID
MyStatus
NJ/NX-series Database Connection CPU Units User's Manual (W527)
OperatingEnd
Operating
=
EN
In1
MyStatus.Status
In2
<>
EN
In1
MyStatus.Status
In2
Resend
S
Nosent
S

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents