Crear primero la BD llamada MODBUS_SCADA CREATE TABLE ReadCoils ( idReadCoils INT NOT NULL AUTO_INCREMENT, CO1 CHARACTER, CO2 CHARACTER, CO3 CHARACTER, CO4 CHARACTER, CO5 CHARACTER, CO6 CHARACTER, CO7 CHARACTER, CO8 CHARACTER, PRIMARY KEY (idReadCoils) ) ENGINE=InnoDB; CREATE TABLE ReadDiscreteInput ( idReadDiscreteInput INT NOT NULL AUTO_INCREMENT, DI1 CHARACTER, DI2 CHARACTER, DI3 CHARACTER, DI4 CHARACTER, DI5 CHARACTER, DI6 CHARACTER, DI7 CHARACTER, DI8 CHARACTER, PRIMARY KEY (idReadDiscreteInput) ) ENGINE=InnoDB; CREATE TABLE ReadHoldingRegisters ( idReadHoldingRegisters INT NOT NULL AUTO_INCREMENT PRIMARY KEY, HR1 INT, HR2 INT, HR3 INT, HR4 INT, HR5 INT, HR6 INT, HR7 INT, HR8 INT ) ENGINE=InnoDB; CREATE TABLE ReadInputRegisters ( idReadInputRegisters INT NOT NULL AUTO_INCREMENT PRIMARY KEY, IR1 INT, IR2 INT, IR3 INT, IR4 INT, IR5 INT, IR6 INT, IR7 INT, IR8 INT ) ENGINE=InnoDB;
Generated by GNU Enscript 1.6.5.90.
No hay comentarios:
Publicar un comentario