Sie sind auf Seite 1von 155

Altistart 46 Telemecanique

Guide d'exploitation User's manual Bedienungsanleitung Gua de explotacin

additif de communication communication option Kommunikationsmodul opcin de comunicacin UNI-TELWAY, Modbus RTU/Jbus, Modbus ASCII, protocole ASCII pour PC, ASCII protocol for PC, ASCII-Protokoll fr PC, protocolo ASCII para PC.

VW3-G46301

Merlin Gerin

Modicon

Square D

Telemecanique

Altistart 46

Additif de communication

Page 2

F R A N A I S E N G L I S H D E U T S C H E S P A O L

Communication option

Page 40

Kommunikationsmodul

Seite 78

opcin de comunicacin

Pgina 116

F R A N A I S

Malgr tout le soin apport l'laboration de ce document, Schneider Electric SA ne donne aucune garantie sur les informations qu'il contient, et ne peut tre tenu responsable ni des erreurs qu'il pourrait comporter, ni des dommages qui pourraient rsulter de son utilisation ou de son application. Les produits matriels, logiciels et services prsents dans ce document sont tout moment susceptibles d'volutions quant leurs caractristiques de prsentation, fonctionnement ou utilisation. Leur description ne peut en aucun cas revtir un aspect contractuel.

Sommaire
Prsentation Installation de l'option communication Connexion sur bus multipoint Principe de la communication Variables de lAltistart 46 Requtes UNI-TELWAY Protocole MODBUS / JBUS Liaison srie Terminal Windows Liaison srie ASCII Diagnostic Index par fonctionnalits
TM

4 5 68 9 11 12 16 17 19 20 30 sous PC 31 34 35 et 36 37 38 et 39 F R A N A I S

WindowsTM est une marque de Microsoft Corporation

Prsentation
L'option de communication rfrence VW3-G46301 (appele aussi C1 dans ce document) est prvue pour tre utilise avec les Altistart 46 . Elle est conue pour intgrer ces constituants de commande de puissance dans les architectures modernes d'automatisme en permettant de les connecter sur un bus industriel multipoint. Les changes de donnes permettent d'exploiter toutes les fonctions de l'Altistart 46 : configuration de la communication, configuration des fonctions, tlchargement des paramtres de rglage, commande-contrle, surveillance-diagnostic. L'option de communication VW3-G46301 est livre avec un cble RS 485 de raccordement de longueur 3 m muni d'un connecteur SUB-D 9 points. Attention : Pour connecter un PC cette option communication (Logiciel Terminal sous WINDOWS ou logiciel PC de l'Altistart 46), il est ncessaire de s'quiper, pour plusieurs configurations, d'un kit de raccordement RS 232 PC, rfrenc VY1-G461510. Cette option gre les protocoles suivants : UNI-TELWAY, MODBUS RTU/JBUS, MODBUS ASCII, ASCII pour PC (spcifique Telemecanique)

F R A N A I S

Installation de l'option communication

F R A N A I S

Avant toute intervention sur le dmarreur, couper l'alimentation.

Vrifier que le dmarreur est reli la terre. Monter l'option de communication VW3-G46301 sur le dmarreur, comme indiqu sur la photo ci-dessus. Raccorder le cble suivant le protocole choisi : - le cble fourni avec option pour une connexion en RS 485 avec l'un des protocoles UNITELWAY, MODBUS RTU/JBUS ou MODBUS ASCII, - le kit cble PC (VY1-G461510) pour une connexion en RS 232 C avec le protocole console ASCII (protocole spcifique Telemecanique). Cbler l'Altistart suivant l'une des trois possibilits suivantes : - commande 3 fils, - arrt d'urgence sur LI STOP, - strap entre LI STOP et PL (24 V). Nota : pour commander partir de la ligne, mettre du 24V sur la borne LI STOP. Configurer la communication suivant les pages 31 33.

Connexion sur bus multipoint


Brochage du connecteur SUB-D
L'interface de transmission conforme au standard RS 485 et RS 422 (compatible RS 232 C) est isole galvaniquement du dmarreur. Elle est disponible sur connecteur SUB-D 9 points femelle. L'entre TER/ permet de slectionner le protocole ASCII pour PC lorsqu'elle n'est pas connecte, ou le protocole bus configur lorsqu'elle est relie au 5 V.
TER/ 5V 4,7 k 0V D (B) D (A) 4,7 k 0V 5V 9 8 1 4 7 3

F R A N A I S

TX validation mission &

+5V TER/ D(B) RD(B)

5 9 4 8 3 7 2 6 1

SG = RD(B) 0V Alim. TX = D(A) RX = RD(A) RS232

5V 100 k RX & 100 k 0V 0V

RD (B) RD (A)

5 6 2

Vue ct contacts extrieurs

Raccordement sur bus au standard RS 485


(cble avec SUB-D 9-15 points fourni avec l'option) Points utiliser (vue ct connecteur SUB-D 9 points de l'option)

0V 4

Recommandations utiliser un cble blind avec 2 paires de conducteurs torsads, relier les potentiels de rfrence entre eux, longueur maximale de la ligne : 1000 mtres, longueur maximale d'une drivation : 20 mtres, ne pas connecter plus de 28 stations sur un bus, cheminement du cble : loigner le bus des cbles de puissance (30 cm au minimum), effectuer les croisements angle droit si ncessaire, raccorder le blindage du cble la masse de chaque quipement, adapter la ligne ses deux extrmits.

D(B) 7 D(A) 3

TER/ 8 5V 9

120 1 nF

Terminaison de ligne Zt recommande aux 2 extrmits

Connexion sur bus multipoint


Pour faciliter le raccordement des quipements, divers accessoires sont proposs.

Cbles pour bus TSX-CSA100 : longueur 100 m (328 ft), TSX-CSA200 : longueur 200 m (656 ft), TSX-CSA500 : longueur 500 m (1,640 ft),

Prise abonns TSX-SCA62 Ce botier passif comporte un circuit imprim quip de borniers vis et permet le raccordement de 2 quipements sur le bus. Il inclut l'adaptation de fin de ligne lorsque la prise est situe en extrmit.

Exemple de raccordement sur bus UNI-TELWAY

F R A N A I S

TSX-SCM 21.6 TSX-CSAXXX

TSX-CSB015

TSX-SCA62

VW3-G46301

VW3-G46301

VW3-G46301

ALTISTART 46

ALTISTART 46

ALTISTART 46

Connexion sur bus multipoint


Raccordement sur bus au standard RS 422
Points utiliser (vue ct connecteur SUB-D 9 points de l'option)

0V 4

0V 4

D(B) 7 D(A) 3

D(B) 7 D(A) 3

F R A N A I S

ou
RD(B) 6 RD(A) 2 TER/ 8 5V 9 RD(B) 6 RD(A) 2 TER/ 8 5V 9

Raccordement en RS 232 C
Points utiliser (vue ct connecteur SUB-D 9 points de l'option)

1 4

7 6 TX 3

mission de donnes commun rception de donnes


(1)

SG RX

5 2

TER/ 5V

8 9

(1) Le strap TER / 5 V doit tre absent pour communiquer en protocole ASCII avec un PC, il doit tre prsent pour communiquer avec les autres protocoles. Le cble d'interconnexion avec SUB-D 9 points et l'adaptateur 9-25 points permettent un raccordement au PC.

Principe de la communication
Raccordement du dmarreur
Le raccordement de l'Altistart 46 peut s'effectuer suivant les schmas figurant dans le catalogue. La fonction communication offre la possibilit d'utiliser le relais de scurit du dmarreur en relais d'isolement (contacts disponibles sur bornes R1A-R1B). L'utilisation de ces contacts dans le circuit de commande du contacteur de ligne permet d'effectuer distance les mises sous tension et hors tension de la puissance.

Etats de l'Altistart 46
Le graphe suivant montre les quatre tats stables du dmarreur. F R A N A I S

Dfaut rarmable auto Rarmement auto EN DEFAUT REARMABLE AUTO

HORS DEFAUT (Fonctionnement normal)

Dfaut rarmable/demande Demande de rarmement EN DEFAUT REARMABLE SUR DEMANDE Dfaut non rarmable Dfaut non rarmable Rinitialisation produit EN DEFAUT NON REARMABLE

1 - HORS DEFAUT : dans cet tat, le relais de scurit est enclench. 2 - EN DEFAUT REARMABLE AUTO : cet tat fait suite un dfaut susceptible de disparatre sans intervention (Absence de l'alimentation puissance + RUN) ou par essais successifs (dfaut phase, frquence). Cet tat n'est pris en compte que si le mot W4035,ARS a t configur 1. Si R1 est configur en relais de dfaut : ce type de dfaut ne provoque pas l'ouverture de celui-ci. Si R1 est configur en relais d'isolement : ce type de dfaut provoque l'ouverture de celuici. 3 - EN DEFAUT REARMABLE SUR DEMANDE : cet tat est atteint ds l'apparition d'un dfaut ncessitant une vrification si le produit est configur en rarmement auto (W4035,1 = 1) ou bien ds l'apparition d'un dfaut rarmable si la configuration est en rarmement manuel (W4035,1 = 0). 4 - EN DEFAUT NON REARMABLE : cet tat est atteint ds l'apparition d'un dfaut grave ncessitant une intervention (Dfaut court-circuit, dfaut interne ou inversion de phase). Dans ce cas, la rinitialisation du produit s'obtient en coupant l'alimentation contrle.

Principe de la communication
Structure des donnes
Le rglage, la commande, le contrle et la surveillance de l'Altistart 46 s'effectuent par l'intermdiaire de donnes (ou objets) qui sont propres ce produit. Ceux-ci sont de deux types : BITS : dsigns Bi (i = numro du bit) qui permettront d'effectuer des commandes logiques. Exemple : B1 = Rarmement du dmarreur (demande de rarmement en ligne) MOTS (de 16 bits) : dsigns Wi (i = numro du mot) qui seront utiliss pour mmoriser, soit des valeurs numriques entires non signes (0 65535), soit 16 tats logiques indpendants appels alors registres (0 9 puis A F). Exemple : W4028 = Niveau de boost (valeur numrique) W4061 = Registre d'tat du dmarreur (16 bits d'tat) Nota : W4061,2 dsigne le bit de rang 2 du registre 4061.

F R A N A I S

IMPORTANT :
Avec le protocole MODBUS certains automates programmables n'utilisent pas le mot 0. Dans ce cas il est ncessaire d'ajouter 1 chacune des adresses. Exemple : W4028 devient W4029.

Accs aux donnes


Les tableaux ci-aprs fournissent la liste des paramtres accessibles par la communication. La fonction prcise de chaque paramtre ainsi que son influence sur le comportement du dmarreur sont dcrites dans le guide d'exploitation de l'additif visualisation rfrenc VD0C32Q302. Certaines donnes sont accessibles aussi bien en criture qu'en lecture : ce sont les bits et les mots correspondants des rglages, des configurations ou des commandes. Ces donnes sont exploites par le dmarreur. Les donnes labores par le dmarreur ne sont accessibles qu'en lecture : informations de signalisation, de dfaut, ; leur criture n'a pas de sens et est refuse.

Units
Les mots sont toujours exprims en valeurs numriques entires non signes (0 65535), dont l'unit est prcise pour chacun. Exemple : W4037 = Couple initial, unit en % de Cn (Ex : 50 = 50 % Cn) W4033 = Dmarrage trop long en secondes

Plages
La plage admissible par le dmarreur est spcifie pour chacun des paramtres. 0* signifie que la valeur 0 est utilise pour mettre hors service la fonction. Exemple : W4036 = 0 pas de limite max de couple, plage de rglage de 10 200 (en % de Cn)

Valeurs la mise sous tension


Lors de chaque mise sous tension, l'Altistart 46 est toujours initialis avec la configuration et les rglages mmoriss dans sa mmoire EEPROM (en LIGNE, mmorisation des rglages avec W4060,E ou retour aux rglage usine avec W4060,D). Le dmarreur est systmatiquement plac en commande LOCALE (ordres attendus sur le bornier). Pour le piloter partir d'un bus multipoint, il est ncessaire d'affecter ses commandes en LIGNE : criture du mot W4060 en positionnant 1 le bit 1.

10

Principe de la communication
Gestion LOCAL / LIGNE
Un dmarreur ATS46 peut fonctionner suivant deux modes de commandes Fonctionnement en LOCAL partir d'une commande bornier 2 ou 3 fils. Fonctionnement en LIGNE partir d'un PC ou d'un automate. Ces modes de fonctionnement ne sont effectifs que pour l'accs aux paramtres de commande. Ils sont indiffrents pour les paramtres de configuration, rglage et surveillance. Les paramtres influents Bit de commande B2 (DLI) Bit du Mot de commande W4060,1 (DLI) Bit de commande B4 (NTO) Bit du Mot de commande W4060,4 (NTO) Mot de configuration W4022 (LI) Mot de configuration W4029 (STY) : Affectation des commandes en LIGNE/LOCAL. : Affectation des commandes en LIGNE/LOCAL. : Suppression du contrle de la ligne (dfaut SLF). : Idem. : Affectation de LI au forage local. : Slection du type d'arrt via LI_STOP. F R A N A I S

Bit du Mot de signalisation W4061,0 (LOC) : En mode local = 1, en mode ligne = 0. Bit du Mot de signalisation W4061,5 (FLO) : En forage local = 1, hors forage local = 0. Bit du Mot de signalisation W4066,0 (LIO) : Etat de LI (0 = bas, 1 = haut). Fonctionnement En mode LIGNE : la ligne a accs en criture aux commandes, seule LI_STOP est active au bornier et prioritaire. Attention : l'activation de LI, configure en forage local, interdit toute criture par la ligne. En mode LIGNE, il est ncessaire d'envoyer rgulirement des messages au dmarreur : un message au minimum toutes les 10 secondes avec UNI-TELWAY, MODBUS ASCII et MODBUS RTU et toutes les secondes en protocole ASCII. L'absence de rception de message provoque un dfaut liaison srie du dmarreur (SLF). Le contrle de la communication peut tre inhib en positionnant le bit NTO 1, dans ce cas le dfaut SLF n'apparat jamais. En mode LOCAL : la ligne n'a pas accs en criture aux commandes. Sur le bornier, LI, LI_RUN et LI_STOP sont actives. Le passage en ligne est possible par criture 1 du bit DLI (B2 ou W4060,1).

Cas typique de fonctionnement Une demande ou une dsactivation du forage local provoque un arrt suivant STY : en commande 2 fils : ATS46 en mode ligne et LI_RUN 1, une demande forage local provoque un arrt suivant la configuration de STY. Le redmarrage est immdiat par LI_RUN. en commande 3 fils : Idem mais le redmarrage est immdiat sitt LI_STOP relch et une impulsion LI_RUN donne.

11

Variables de l'Altistart 46
Bits de commande (lecture et criture)
Bit B0 B1 Nom RST DLI Description Fonction

Commande de rarmement Acquite un dfaut corrigible et rarme le du dmarreur relais de scurit (= W4060,0) Affection des commandes en LIGNE/LOCAL LIGNE = 1, LOCAL = 0 Le dmarreur ne peut tre command qu' partir de la liaison srie (bus ou PC) de son bornier (= W4060,1) Le dmarreur dclenche le dfaut EtF (= W4060,2) Le dmarreur ne dclenche pas de dfaut SLF si l'option de communication est en dfaut NET (= W4060,4) 0 - inactif ; 1 - actif 0 - inactif ; 1 - actif (= W4060,5) (= W4060,6) (= W4060,7) (= W4060,8)

B2 F R A N A I S B3 B4

EXT NTO

Dfaut externe Rserv Suppression du contrle de communication Commande de marche Commande d'arrt frein

B5 B6 B7 B8 B9

RUN CAF CAD CAL

Commande d'arrt dclr 0 - inactif ; 1 - actif Commande d'arrt roue libre 0 - inactif ; 1 - actif Rserv

Mots de rglage (lecture et criture)


Adresse W4036 W4037 W4038 W4039 W4040 W4041 W4042 W4043 W4044 W4045 W4046 W4047 Nom TLI TQ0 EDC ILT OIL BRC EBA ACC DEC IPR TPR GKI Plage Unit Description Valeurs possibles 0 = off

0*, % de Cn Couple max en acclration 10-200 0-100 0-100 % de Cn Couple initial en acclration % de Cn Couple final en dclration

150-700 % de IN Courant de limitation et <5.ICL 0*, 50-300 0-100 % de IN Seuil de courant de dclenchement Intensit de freinage 0 = off

20-100 % du temps Ajustement temps de freinage pseudo de freinage continu 1-60 1-60 0-100 0-99 20-50 s s Pente de la rampe d'acclration Pente de la rampe de dclration

% de lcl Rglage du courant de prchauffage (1) mn _ Temporisation avant prchauffage Gain d'intgration en dclration

(1) Ne pas dpasser la valeur prconise par le fabricant du moteur

12

Variables de l'Altistart 46
Mots de configuration (lecture et criture)
Adresse W4018-4019 W4020 W4021 W4022 VMA Nom Plage Unit Description Rserv Verrouillage moteur l'arrt Rserv Affectation de l'entre logique LI Valeurs possibles lu 8000 H 0 - non verrouill 1 - verrouill l'arrt lu 8000 H 0 - non affecte 1 - forage roue libre 2 - dfaut externe 3 - prchauffage moteur 4 - forage local (0 = local, 1 = ligne) 5 - forage dmarrage en cascade 6 - inhibition des protections 7 - rarmement dfaut thermique moteur 8 - rarmement des dfauts 0 - non affecte 1 - alarme thermique moteur 2 - moteur aliment 0 - non affect 1 - courant 2 - tat de charge 3 - tat thermique 4 - facteur de puissance 5 - puissance active moteur

LI

0-7

W4023

LO1

0-2

Affectation de la sortie logique LO1

W4024

AO

0-4

Affectation de la sortie analogique AO

F R A N A I S

W4025 W4026 W4027 W4028 W4029

ASC IN LSC BST STY

50-500 (0,5-1,3)ICL

W4030

PHR

W4031 W4032 W4033 W4034

ULL TBS TLS THP

Echelle sortie analogique Courant nominal moteur en fonction du courant calibre dmarreur 0-80 % pertes Compensation pertes stator 0*, 50-100 % tension Niveau de boost 0-2 Slection type d'arrt via l'entre logique 0 LI_STOP 120-2 Affectation dfaut rotation de phase 0120*, 20-100 % de Cn Seuil de dclenchement (sous-charge) (0-999) s Rglage de la temporisation avant dmarrage Temps de dmarrage trop long Protection thermique moteur 0 1 2 3 4 5 6 7 0 1 0 1 0 1 -

% 0,1 A

roue libre dclration freinage off sens rotation directe sens rotation inverse

0*, 10-999 seconde 0-7

protection inhibe sous classe 2 classe 10A classe 10 sous classe 15 classe 20 sous classe 25 classe 30

W4035

CNF CLP ARS R1 LO2 AO1 0* : Fonction OFF

Registre de configuration bit 0 : slection boucle ferme, boucle ouverte bit 1 : Rarmement automatique bit 2 : Affectation du relais R1 bit 3 : Affectation de la sortie logique LO2 bit 4 : Plage de la sortie analogique

- boucle ouverte - boucle ferme - rarmement manuel - rarmement automatique - relais de dfaut - relais d'isolement

0 - non affecte 1 - alarme seuil de courant 0 - 0-20 mA 1 - 4-20 mA

13

Variables de l'Altistart 46
Mots de configuration (lecture et criture)
Adresse W4035 Nom SST CSc Plage Unit Description bit 5 : Slection d'un fonctionnement d'essai sur moteur de faible puissance bit 6 : configuration moteur en cascade bit 7-F : rserv Valeurs possibles 0 - non affecte 1 - fonction d'essai 0 - inactive 1 - active

Mot de commande (lecture et criture)


Adresse Nom CMD RST DLI EXT DMC NTO RUN CAF CAD CAL DCM RTH INH TRE INT MRE RRE Plage Unit Description Registre de commande bit 0 : Commande de rarmement du dmarreur bit 1 : Affectation des commandes en ligne bit 2 : Commande dfaut externe bit 3 : Commande dclration moteur en cascade bit 4 : Suppression du contrle de la ligne (dfaut SLF) bit 5 : Commande de marche bit 6 : Commande d'arrt frein bit 7 : Commande d'arrt dclr bit 8 : Commande d'arrt roue libre bit 9 : Commande de prchauffage moteur bit A : RAZ tat thermique moteur bit B : Inhibition des protections bit C : RAZ du compteur d'heure bit D : Rappel rglage usine bit E : Mmorisation rglages en EEPROM bit F : Rappel rglages en EEPROM 0 - inactif 1 - actif sur front positif (1) 0 - inactif 1 - actif sur front positif (1) 0 - inactif 1 - actif sur front positif (1) 0 - inactif 1 - actif (2) 0 - inactif 1 - actif 0 - inactif 1 - actif 0 - inactif 1 - actif 0 - inactif 1 - actif 0 - inactif 1 - actif 0 - inactif 1 - actif 0 - inactif 1 - actif 0 - local 1 - ligne 0 - inactif 1 - actif sur front positif (1) Valeurs possibles

F R A N A I S

W4060

(1) signifie que le bit repasse 0 aprs action. (2) repasse automatiquement 0 si aucun autre front positif n'est apparu au bout de 10 secondes.Hors forage local, l'criture est prise en compte selon les conditions suivantes : si DLI = 1, les bits RST, EFL, RUN, CAF, CAD, CAL, DCM, RTH sont pris en compte, les autres bits sont indpendants de DLI (NTO, TRE, INT, MRE, RRE).

14

Variables de l'Altistart 46
Mots de signalisation (lecture seule)
Adresse W4061 Nom ETA LOC RDY FAI Plage Unit Description Registre d'tat du dmarreur bit 0 : En mode local/ligne bit 1 : Dmarreur prt bit 2 : Dmarreur en dfaut bit 3 : En arrt demand par bornier HEA FLO NTO bit 4 : Chauffage moteur bit 5 : En forage local bit 6 : Contrle de la communication supprim bit 7 : Alarme seuil de courant SST bit 8 : En rgime permanent bit 9 : En rgime court-circuit bit A : En phase d'arrt bit B : En phase d'acclration OVL LIM NLP bit C : Alarme thermique moteur bit D : En limitation de courant bit E : Absence rseau bit F : Frquence rseau W4062 W4063 W4064 W4065 LCR LTR LTH PHE 0 999 1-255 1-250 0-2 A/10 Courant 0 - local 1 - ligne 0 - faux 1 - vrai 0 - fonctionnement normal 1 - en dfaut 0 - faux 1 - vrai 0 - faux 1 - vrai 0 - faux 1 - vrai 0 - faux 1 - vrai 0 - faux 1 - vrai 0 - faux 1 - vrai 0 - faux 1 - vrai 0 - faux 1 - vrai 0 - faux 1 - vrai 0 - faux 1 - vrai 0 - faux 1 - vrai 0 - faux 1 - vrai 0 - 50 Hz 1 - 60 Hz Valeurs possibles

F R A N A I S

% de Cn (1) Couple % Etat thermique moteur Etat rotation de phase 0 - off 1 - sens rotation directe 2 - sens rotation inverse

W4066

LIO

Etat des entres/sorties logiques bit 0 : Entre logique LI bit 1 : Sortie logique LO1 bit 2 : Sortie logique LO2 bit 3 : Relais R1 0 - bas 1 - haut 0 - bas 1 - haut 0 - bas 1 - haut 0 - ouvert 1 - ferm

(1) Cn : Couple nominal

15

Variables de l'Altistart 46
Mots de signalisation (lecture seule)
Adresse W4066 Nom Plage Unit Description bit 4 : Relais R2 bit 5 : Vigitherme bit 6 : Entre logique LI_RUN bit 7 : Entre logique LI_STOP Valeurs possibles 0 - ouvert 1 - ferm 0 - Dpassement T 1 - ferm 0 - bas 1 - haut 0 - bas 1 - haut 0 - standard 1 - svre

F R A N A I S

bit 8 : Switch service bit 9-F : Rserv W4067 W4068 W4069 COS TFR DFT 1-100 (0-65535) % heure Cos Compteur d'heure Registre de dfaut bit 0 : Rserv par JC08 INF OCF PIF bit 1 : Dfaut interne bit 2 : Court-circuit bit 3 : Inversion des phases bit 4 : Rserv SLF ETF STF USF PHF OHF LRF OLF FRF bit 5 : Dfaut communication ligne bit 6 : Dfaut externe bit 7 : Dmarrage trop long bit 8 : Absence rseau et demande de marche bit 9 : Dfaut phase bit A : Dfaut thermique dmarreur bit B : Rotor bloqu en rgime permanent bit C : Surcharge thermique moteur bit D : Incohrence frquence rseau bit E : Rserv ULF W4070 W4071 SAO bit F : Sous-charge Valeur sortie analogique AO bit 0 : alarme temporisation avant dmarage (TBS) bit 1 : tat d'inhibition des protections (INH) W4072 W4090 W4091 W4092 LPR PTR DFT 0-255 % Puissance active moteur Ordre du dfaut Recopie du registre de dfaut Recopie du compteur d'heure (W4068)

0 - inactive 1 - active 0 - inactif 1 - actif

16

Requtes UNI-TELWAY
Liste des requtes
Le tableau ci-aprs prcise les requtes acceptes par lAltistart 46 et leurs limites d'utilisation. Le dtail du codage des requtes est donn dans le manuel de rfrence UNI-TELWAY.

Requte Identification Version protocole Status Miroir Lecture compteurs derreurs RAZ compteurs Lecture dun bit Ecriture dun bit Lecture dun mot Ecriture d'un mot Lecture dobjets Ecriture dobjets Donnes vnementielles

Code (hexa) H0F H30' H31' HFA HA2' HA4' H00' H10' H04' H'14' H36' H37'

Altistart 46 Oui Oui Oui Oui Oui Oui Oui Oui Oui Oui 63 mots maxi* 60 mots maxi Oui 2 mots

F R A N A I S

* Seuls 27 mots sont utiliss pour l'Altistar 46

Requte identification
Code rponse Type produit Sous-type Version produit Chane ASCII* = H'3F' = H'16' pour Altistart = H'46' Altistart 46 = H'XX' version logicielle (ex : H'21' pour V2.1) = symbole du produit (ex : ATS-46D17N)

* Le premier octet dune chane ASCII correspond toujours la longueur de la chane.

Requte status
Code rponse Etat courant = H'61' = H'XX' bit 0 : dfaut interne bit 1 : dfaut rarmables bit 2 : dfaut non rarmables bit 3 : non significatif bit 4 : non significatif bit 5 : non significatif bit 6 : dmarreur larrt (RDY ou SLC ou dfaut) bit 7 : dmarreur en commande LOCALE = H'C7' indique les bits significatifs de ltat courant

Masque dtat

17

Requtes UNI-TELWAY
Requtes lecture et criture dobjets
Ces requtes permettent daccder plusieurs mots dans les limites spcifies la page prcdente. Le codage de ces requtes peut seffectuer en spcifiant : Code question (TXTi,C) Catgorie Segment Type objet = H36' (lecture) ou H37' (criture) = 0...7 = H68' (mot interne) = H06' pour octet (8 bits) en lecture ou H07' pour mot (16 bits) en lecture et en criture = Hxxxx

F R A N A I S

Adresse objet Etc... Les mots rservs ou inutiliss sont lus 0 et leur criture est sans effet. La rponse la requte "criture d'objets" est accepte si au moins un mot est crit. Exemple : programmation sur automate TSX7 avec utilisation du bloc texte. LECTURE des mots W4022 W4025 de l'Altistart 46. En utilisant le type objet mot = H07' Bloc texte lmission TxTi,C = H0736' (catgorie + requte) TxTi,L = 6 + table dmission Segment mot interne Type mot
W4023 (p. faible) H'07' 4023 4 H'68' W4024 (p. faible) W4025 (p. faible) W4026 (p. faible)

Bloc texte la rception TxTi,V = H66' (compte-rendu) TxTi,S = 9 (9 octets reus) + table de rception

H'07' W4023 (p. fort) W4024 (p. fort) W4025 (p. fort) W4026 (p. fort)

4 mots lire Numro du premier mot Les donnes reues dans la table de rception sont dcales dun octet. Il appartient au programme dapplication den effectuer un recadrage (par dcalages successifs par exemple) avant de les exploiter.

18

Requtes UNI-TELWAY
En utilisant le type objet octet = H'06' Bloc texte l'mission Bloc texte la rception TxTi,C = H'0736' (catgorie + requte) TxTi,V = H'66' (compte-rendu) TxTi,L = 6 TxTi,S = 10 (10 octets reus) + table d'mission + table de rception Segment mot interne Type octet
W4022 (p. fort) W4023 H'06' 8045 9 H'68' W4024 W4025 W4026 H'06'

9 octets lire (poids fort de W4022 + 8 octets constituant W4023 W4026) Numro du premier octet (le poids fort de W4022 a pour adresse 2 x 4022 + 1 = 8045)

F R A N A I S

Cette programmation permet dobtenir directement un cadrage correct des mots dans la table de rception.

Donnes vnementielles
L'Altistart 46 met de sa propre initiative des donnes au matre de la liaison UNI-TELWAY sans avoir reu de question pralable. Ces donnes sont envoyes au moyen de la requte "donnes non sollicites" et ne ncessitent pas de rponse de la part du destinataire. Elles sont mises dans les 2 cas suivants : lors de lapparition et de la disparition dun dfaut (front montant ou descendant du bit W4061,2 du registre dtat), lorsque le dmarreur est forc en commande locale par lintermdiaire de son entre logique si celle-ci a t affecte cette fonction par le mot W4022. Taille des donnes vnementielles : 2 mots de 16 bits envoys dans cet ordre : Registre dtat ETA (mot W4061), Registre de dfaut DFT (mot W4069). Rappels : Lexploitation des donnes vnementielles avec automate TSX ncessite : davoir configur correctement le coupleur matre de la liaison UNI-TELWAY, de surveiller rgulirement les indicateurs signalant les changements de valeur de celles-ci, deffectuer lacquisition de ces donnes par la requte lecture des donnes vnementielles.
19

Protocole MODBUS / JBUS


Gnralits
Lchange de donnes entre systmes informatiques, automates programmables et autres systmes intelligents doit seffectuer dans un langage commun. Ce langage doit tre le plus simple possible et compris par chaque interlocuteur, nanmoins chaque change doit pouvoir tre contrl afin dassurer lintgrit des transferts. Les variables changes sont alors insres dans une trame constitue gnralement de la faon suivante :
En-tte Adresse Requte Donnes Contrle Fin

F R A N A I S

Chaque protocole dfinit la prsence, le format, le contenu des diffrents groupes de variables entourant la zone de donnes. Cette structuration permet de dfinir le dbut des messages, la taille de ceux-ci, ventuellement le systme auquel sont adresses les donnes, le type de fonction demande, les variables ellesmmes, un paramtre de contrle et un code de fin validant lensemble du message. Cette trame est diffrente par son contenu et sa forme pour chaque type de protocole. Dans la suite de ce document les fonctionnalits MODBUS et JBUS sont regroupes sous le terme de MODBUS.

Trames MODBUS
Deux modes de transmission sont utilisables, un seul dentre eux tant employ dans un systme. Mode RTU La trame dfinie pour le protocole MODBUS ne comporte ni octets den-tte de message, ni octets de fin de message. Sa dfinition est la suivante :
Adresse Requte Donnes CRC16

Les donnes sont transmises en binaire. CRC16 : paramtre de contrle polynomial (cyclical redundancy check). La dtection de fin de trame est ralise sur un silence 3 caractres. Mode ASCII La trame est complte et se dfinit de la faon suivante :
En-tte Adresse Requte Donnes LRC Fin : CR LF

en-tte = ":" (H3A'), les donnes sont codes en ASCII : chaque octet est divis en 2 quartets et chaque quartet est cod par un caractre ASCII (0 F), LRC : paramtre de contrle longitudinal (longitudinal redundancy check), fin : "CR" "LF" (H0D' et H0A').

20

Protocole MODBUS / JBUS


Principe
Le protocole MODBUS est un protocole de dialogue crant une structure hirarchise (un matre et plusieurs esclaves). Le protocole MODBUS permet dinterroger depuis le matre, un ou plusieurs esclaves intelligents. Une liaison multipoint relie entre eux matre et esclaves. Deux types de dialogue sont possibles entre matre et esclaves : le matre parle un esclave et attend sa rponse, le matre parle lensemble des esclaves sans attendre de rponse (principe de la diffusion gnrale). Le numro d'esclave varie de 1 31 et le numro 0 est rserv pour la diffusion.

Matre

Le matre gre les changes et lui seul en a linitiative. Ce matre ritre la question lors dun change erron, et dcrte lesclave interrog absent aprs une non-rponse dans un temps enveloppe donn. Il ne peut y avoir sur la ligne quun seul quipement en train dmettre. Aucun esclave ne peut de lui-mme envoyer de message sans y avoir t invit.

F R A N A I S

Esclave j Esclave i Esclave k

Nota Toute communication latrale (cest--dire desclave esclave) ne peut seffectuer directement. Il est ncessaire que le logiciel dapplication du matre ait t conu en consquence : interroger un esclave et renvoyer les donnes reues lautre esclave.

21

Protocole MODBUS / JBUS


Donnes accessibles
Le protocole MODBUS permet dchanger des donnes (bits et mots) entre un matre et des esclaves, et assure le contrle des changes. Par consquent, dans chaque entit desclave, sont dfinies des zones de bits qui seront lues ou crites par le matre. Un objet dentre peut tre lu uniquement. Un objet de sortie peut tre lu ou crit.
Esclave i

Table mission

F R A N A I S

Matre

Adressage MODBUS

Esclave j

Bits d'entre

Bits de sortie

Programme utilisateur

Mots d'entre

Table rception

Mots de sortie

Esclave k

Les changes
Le matre, ou organe de supervision, a linitiative des changes. Ce matre va sadresser un esclave en lui fournissant quatre types dinformations : adresse de lesclave, fonction demande lesclave, zone de donnes (variable en fonction de la requte), contrle dchange. Le matre de la liaison attend la rponse de lesclave avant dmettre le message suivant, vitant ainsi tout conflit sur la ligne. Ceci autorise donc un fonctionnement en half-duplex.

22

Protocole MODBUS / JBUS


Contrle et surveillance
Toute gestion dchanges entre deux entits dialoguant par liaison srie asynchrone, inclut videmment des rponses dexception lorsque sont apparus des dfauts dchange. Diffrents messages incohrents peuvent arriver un esclave. Dans ce cas, ce dernier rpond sa noncomprhension au matre qui prend ou non la dcision de ritrer lchange.

Matre

ATS 46

F R A N A I S

Le matre a accs un certain nombre dinformations dtenues et gres par lesclave. Le matre accde ces donnes par des codes fonctions particuliers (mode diagnostic, lecture du compteur dvnements,...).

Fonctions MODBUS
Parmi les fonctions MODBUS on distingue : les fonctions principales permettant lchange des donnes, les fonctions complmentaires pour le diagnostic des changes. Le tableau suivant indique les fonctions gres par loption communication de l'Altistart 46, et prcise en outre les limites. La dfinition des fonctions "lecture" et "criture" sentend vue du matre.
Code 01 02 03 04 05 06 08 11 16 Nature des fonctions Lecture de N bits de sortie Lecture de N bits dentre Lecture de N mots de sortie Lecture de N mots dentre Ecriture dun bit de sortie Ecriture dun mot de sortie Diagnostic (voir dtails) Lecture compteur dvnements Ecriture de N mots de sortie D Altistart 46 1 maxi 1 maxi 29 maxi 29 maxi Oui Oui Oui Oui 28 maxi

D D

Les fonctions notes D peuvent tre utilises en diffusion gnrale. Le message mis par le matre doit alors spcifier un numro desclave = 0. Il ny a jamais de message rponse en retour.

23

Protocole MODBUS / JBUS


Dtails des fonctions
Code 01 : lecture de N bits de sortie. Cette fonction permet la lecture de bits de sortie (bits qui peuvent tre crits et lus par le matre dans lesclave). lecture de N bits dentre. Idem prcdemment, mais sapplique aux bits dentre (bits que le matre ne peut que lire). lecture de N mots de sortie. Cette fonction permet la lecture de mots de sortie (mots qui peuvent tre crits et lus par le matre dans lesclave). lecture de N mots dentre. Idem prcdemment, mais sapplique aux mots dentre (mots que le matre ne peut que lire). criture dun bit de sortie. Permet le positionnement 0 ou 1 dun bit de sortie (seuls accessibles en criture). criture dun mot de sortie. Permet deffectuer lcriture dun mot de sortie de 16 bits (seuls accessibles en criture).

Code 02 :

Code 03 : F R A N A I S

Code 04 :

Code 05 :

Code 06 :

Le code fonction diagnostic 08 est toujours accompagn dun sous-code. Code 08/00 : cho. Cette fonction demande lesclave interrog de retourner intgralement le message envoy par le matre. rinitialisation de la voie. Cette fonction permet de rinitialiser la communication dun esclave et en particulier de lui faire quitter le mode coute seule (LOM) par l'envoi d'une donne H'0000 ou H'FF00. changement dlimiteur ASCII. En mode ASCII, les messages sont dlimits par le caractre line feed (LF = H0A). Cette fonction permet de changer ce caractre. passage en mode LOM. Cette fonction permet de forcer un esclave passer en coute seule (LOM). Dans ce mode lesclave ne traite pas les messages qui lui sont adresss, et nmet jamais de rponse lexception de la rinitialisation de la voie. remise zro des compteurs. Cette fonction effectue la remise zro de tous les compteurs de surveillance des changes dun esclave. nombre de messages corrects vus sur la ligne sans erreur CRC ou checksum. Cette fonction permet de lire sur un compteur 16 bits (incrment de 0 HFFFF) qui totalise les messages vus sur la ligne et traits par lesclave.

Code 08/01 :

Code 08/03 :

Code 08/04 :

Code 08/0A :

Code 08/0B :

24

Protocole MODBUS / JBUS


Code 08/0C : nombre de messages reus avec erreur de checksum (lecture dun compteur de 16 bits). nombre de rponses dexception. Lecture dun compteur 16 bits totalisant le nombre de messages dexception mis par un esclave vers le matre (suite une trame incorrecte). nombre de messages adresss lesclave sauf en diffusion. Lecture dun compteur 16 bits totalisant tous les messages adresss lesclave quelle que soit leur nature. nombre de messages de diffusion reus. Lecture dun compteur 16 bits totalisant tous les messages adresss lesclave quelle que soit leur nature. lecture du nombre de rponses NAQ. La valeur lue est toujours 0. lecture du nombre de rponses de l'esclave non prtes. La valeur lue est toujours 0. lecture du nombre de caractres non traits (errons). lecture compteur dvnements. un status (toujours nul), un compteur qui est incrment chaque rception de message correct (forme et contenu) destin lesclave sauf pour les rponses dexception. criture de N mots de sortie. Cette fonction permet au matre dcrire des mots de sortie dans lesclave (mots pouvant tre crits ou lus). F R A N A I S

Code 08/0D :

Code 08/0E :

Code 08/0F :

Code 08/10 : Code 08/11 :

Code 08/12 : Code 11 :

Code 16 :

25

Protocole MODBUS / JBUS


Dtails des trames (mode RTU)
Lecture de N bits : fonction 1 ou 2 Question
N esclave 1 octet 01 ou 02 1 octet N du 1er bit PF Pf 2 octets Nombre de bits PF Pf 2 octets CRC16 2 octets

Rponse F R A N A I S
N esclave 1 octet 01 ou 02 1 octet Nombre doctets lus 1 octet Valeur -----------Valeur CRC16 2 octets

Exemple : lecture du bit B4 de lesclave 2 Question Rponse


02 02 02 01 01 01 0004 01 01 0001 00 01 BC38 51CC 900C

si B4 = 0 si B4 = 1

Le bit B4 est toujours utilisable et peut tre lu 1 ou 0.

Lecture de N mots : fonction 3 ou 4 Question


N esclave 1 octet 03 ou 04 1 octet N du 1er mot PF Pf 2 octets Nombre de mots PF Pf 2 octets CRC16 2 octets

Rponse
N esclave 1 octet 03 ou 04 Nombre doctets lus 1 octet Valeur 1er mot PF Pf 2 octets Valeur du
------- dernier mot

CRC16

1 octet

PF Pf 2 octets

2 octets

Exemple : lecture des mots W4023 W4026 de lesclave 2 Question Rponse


02 02 04 04 0FB7 08 0004 xxxx 42C8
----------------------

xxxx

CRC16

Valeur de W4023

Valeur de W4026

26

Protocole MODBUS / JBUS


Ecriture dun bit de sortie : fonction 5 Question
N esclave 1octet 05 1 octet N du bit PF Pf 2 octets Valeur du bit 2 octets CRC16 2 octets

Le champ "valeur du bit" a deux valeurs possibles lexclusion de toute autre : bit 0 = 0000 bit 1 = FF00 F R A N A I S

Rponse
N esclave 1 octet 05 1 octet N du bit PF Pf 2 octets Valeur du bit 2 octets CRC16 2 octets

Exemple : criture de la valeur 1 dans le bit B2 de lesclave 2 Question et rponse


02 05 0002 FF00 2DC9

Ecriture dun mot de sortie : fonction 6 Question


N esclave 1 octet 06 1 octet Numro du mot PF Pf 2 octets Valeur du mot PF Pf 2 octets CRC16 2 octets

Rponse
N esclave 1 octet 06 1 octet Numro du mot PF Pf 2 octets Valeur du mot CRC16 PF Pf 2 octets 2 octets

Exemple : criture de la valeur H'000D' = 13 dans le mot W4043 de lesclave 2 ( ACC = 13 s ) Question et rponse
02 06 0FCB 000D 3AD6

27

Protocole MODBUS / JBUS


Diagnostic : fonction 8 Question et rponse
N esclave 1 octet Sous-code 00 01 03 04 0A 0B 0C 0D 0E 0F 10 11 12 08 1 octet Sous-code 2 octets Donnes 2 octets CRC16 2 octets Fonction excute Echo Rinitialisation XX = nouveau dlimiteur Passage en mode LOM Remise 0 compteurs XXYY = valeur compteur XXYY = valeur compteur XXYY = valeur compteur XXYY = valeur compteur XXYY = valeur compteur Toujours lu 0 Toujours lu 0 XXYY = valeur compteur

F R A N A I S

Donnes questions XX YY 00 00 XX 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Donnes rponses XX YY 00 00 XX 00 Pas de rponse 00 00 XX YY XX YY XX YY XX YY XX YY 00 00 00 00 XX YY

Lecture du compteur dvnements : fonction 11 ( H'0B' ) Question


N esclave 1 octet 0B 1 octet CRC16 2 octets

Rponse
N esclave 1 octet 0B 1 octet 00 00 Valeur compteur PF Pf 2 octets CRC16 2 octets

2 octets

Ecriture de N mots de sortie : fonction 16 (H'10' ) Question


N 10 esclave 1 octet 1 octet N du 1er mot Nombre Nombre PF Pf de mots doctets 2 octets 2 octets 1 octet Valeur 1er mot CRC16 ---PF Pf 2 octets 2 octets

Rponse
N esclave 1 octet 10 1 octet N 1er mot PF Pf 2 octets Nombre de mots PF Pf 2 octets CRC16 2 octets

Exemple : criture des valeurs 2 et 3 dans les mots W4043 et W4044 de lesclave 2 Question Rponse
02 02 10 10 0FCB 0FCB 0002 0002 04 3311 0002 0003 1139

28

Protocole MODBUS / JBUS


Rponses dexception
Une rponse dexception est retourne par un esclave lorsque celui-ci ne peut excuter la demande qui lui est adresse. Format dune rponse dexeption :
N esclave 1 octet Code rponse 1 octet Code erreur 1 octet CRC16 2 octets

Code rponse : code fonction de la demande + H80 (le bit de rang le plus lev est mis 1). Code erreur : 1 = la fonction demande nest pas reconnue par lesclave. 2 = les numros (adresses) de bits et de mots indiqus lors de la demande nexistent pas dans lesclave. 3 = les valeurs de bits et de mots indiques lors de la demande ne sont pas permises dans lesclave. 4 = lesclave a commenc excuter la demande, mais ne peut continuer la traiter entirement. F R A N A I S

Calcul du CRC16
Le CRC16 se calcule sur tous les octets du message en appliquant la mthode suivante. Initialiser le CRC (registre de 16 bits) HFFFF. Faire du 1er octet du message au dernier : CRC XOR <octet> > CRC Faire 8 fois Dcaler le CRC dun bit droite Si le bit sorti = 1, faire CRC XOR HA001> CRC Fin faire Fin faire Le CRC obtenu sera mis poids faibles dabord, poids forts ensuite. XOR = OU exclusif.

29

Protocole MODBUS / JBUS


Mode ASCII
Dans ce mode, la trame MODBUS possde la structure suivante : N esclave Code Donnes LRC --------------------fonction PF Pf Informations identiques au mode RTU, mais codes diffremment Dlimiteurs : ":" = H3A, CR = H0D, LF = H0A. F R A N A I S Informations : le champ information est analogue aux trames RTU, mais cod en caractres ASCII. Chaque octet est spar en 2 quartets et chacun deux est cod par son quivalent ASCII. Exemple : loctet contenant le numro desclave 06 sera cod par les 2 caractres ASCII "0" et "6", cest--dire par H30' et H36'. LRC : somme hexadcimale modulo 256 du contenu de la trame (sans les dlimiteurs) avant codage en ASCII, complmente 2. Loctet obtenu est ensuite cod sous forme de 2 caractres ASCII comme prcdemment. Exemple : criture de la valeur 1 dans le bit B2 de l'esclave 2 Question et rponse En hexadcimal CR LF

3A

30 32 30 35

30303032

46463030

4638

0D

0A

En ASCII : 02 05 0002 FF00 F8 CR LF

Calcul du LRC Somme des octets de la trame : H'02' + H'05' + H'00' + H'03' + H'FF' + H'00' = H'109' = 265 Somme modulo 256 : H'09' = 9 Complment 2 de la somme modulo 256 : H'100' - H'09' = 256 - 9 = 247 = H'F7'

30

Liaison srie Terminal Windows sous PC


Gnralits
L'option C1 peut dialoguer avec un PC par l'intermdiaire du logiciel Terminal de WINDOWS. Ce logiciel, l'aide de requtes en protocole ASCII (Telemecanique) permet l'accs l'ensemble des fonctionnalits de produit. Attention : Il est ncessaire d'utiliser le cble PC pour relier l'option au micro-ordinateur. Ce logiciel permet d'accder aussi la configuration de la communication sur bus (voir pages suivantes). F R A N A I S

Dfinition de la liaison Terminal WINDOWS


Liaison de type matre (PC) - esclave (ATS46), asynchrone 9600 bits/s. Format : 1 bit de start, 8 bits de donnes, 1 bit parit impaire, 1 bit de stop. Nota : Le format et la vitesse sont fixes. Configuration : 1 - Entre sous Terminal de WINDOWS. 2 - Menu Terminal : Paramtres ; Emulation du Terminal : TTY (Generic)

3 - Menu Terminal : Paramtres ; Paramtres du Terminal : [Mode Terminal] [CR > CR/LF] nouvelle ligne en entre cho local en sortie 4 - Menu Terminal : Paramtres ; Communication : . Vitesse de transmission : . Bits de donnes . Bits d'arrt . Parit . Contrle de flux . Ports : : : : : 9600 8 1 Impaire Aucun COM1 (ou autre si utilis)

Nota : Si la slection de la parit fait basculer les bits de donnes 7, alors mettre les bits d'arrt 2, ce qui rtablit les bits de donnes 8, puis repasser les bits d'arrt 1. Il est conseill de mmoriser la configuration du Terminal dans un fichier . trm.

31

Liaison srie Terminal Windows sous PC


Configuration de la communication bus partir du Terminal sous WINDOWS
Les paramtres de configuration de l'option communication peuvent tre lus avec tous les protocoles. Leur criture n'est possible qu'en protocole ASCII (Telemecanique). La slection du protocole ASCII se fait par utilisation d'un cble sans strap entre TER/ et le 5 V. Si TER/ est reli au 5 V, c'est le protocole configur qui est mis en service. Valeurs de paramtres de configuration
Adresse W2290 Paramtre Adresse produit (ADR) Protocole (PRO) Protocole slectionn Valeurs ASCII autorises ADR 0 1 31 W2291 UNI-TELWAY MODBUS RTU MODBUS ASCII W2292 Vitesse (SPD) 2 3 4 5 2 3 4 5 6 7 8 W2293 Format (FOR) 2 3 4 5 6 7 8 9 UTW MODBUS RTU MODBUS ASCII 2 25 29 NO valeur PRO UTW rserv RTU ASC SPD 300 600 1200 2400 4800 9600 19200 FOR 8O1* 8E1 8N1 8N2 7O1 7E1 7O2 7E2 8O1 non modifiable 2 7 300 bits/s 600 bits/s 1200 bits/s 2400 bits/s 4800 bits/s 9600 bits/s 19200 bits/s 2 Valeur par dfaut 0 adresse non configure adresse station Remarques

F R A N A I S

* 8O1 : (nombre de bits) - ( O : ODD [impair] - E : EVEN [pair]) - (nombre de bit "stop") Exemple 8O1 : 8 bits impair, 1 bit stop

32

Liaison srie Terminal Windows sous PC


Configuration de la communication bus partir du Terminal sous WINDOWS
Format des messages ASCII pour le dialogue avec Terminal PC (Matre) question : ATS46 (Esclave) rponse : avec : ?{Donnes}{Fin} >{Donnes}{CR LF}

{donnes} donnes de la question ou de la rponse en caractres ASCII {fin} un ou deux caractres de fin CR ou LF ou CR LF ou LF CR. (CR = Carriage Retum = H'OD'; LF = Line Feed = H'OA'). {CR LF} CR suivi de LF F R A N A I S

Nota : dans la suite de ce chaptre les caractres de fin ne sont pas indiqus. Attention : l'option communication ne gre pas les touches DEL ou Suppr (touche de suppression du dernier caractre entr). Si vous les utilisez, l'cho de votre message sur l'cran peut sembler correct, mais le message sera refus. Si la question ou une valeur demande n'est pas correcte, la rponse est : >N Lecture de la configuration question : rponse (cas de la configuration usine) : ?CONF >CONF:PRO:UTW ADR:NO SPD:9600 FOR:8O1

La configuration lue est : protocole UNI-TELWAY, adresse non configure, vitesse 9600 bits/s, format 8 bits, parit impaire , un bit de stop. La signification des paramtres de la rponse est donne dans la colonne "ASCII" du tableau page 32. Modification de la configuration Toute modification de la configuration est mmorise dans la mmoire de l'Altistart. Pour toute modification de la configuration, le format de la rponse est identique celui de la configuration. Les paramtres sont donns dans le tableau page 32. Les mnmoniques sont dans la colonne "ASCII" et les valeurs possibles selon le protocole dans la colonne " valeurs autorises". Les paramtres peuvent tre modifis un par un. Exemples de questions : adresse 1 ?ADR = 1 protocole UNI-TELWAY ?PRO = UTW vitesse 19200 bits/s ?SPD = 19200 format 8 bits, parit impaire, 1 bit stop ?FOR = 8O1 Plusieurs paramtres peuvent tre modifis en une seule question. Exemples de questions : protocole Modbus RTU, adresse 1, ?CONF=PRO=RTU ADR=1 SPD=4800 FOR=8O1 vitesse 4800 bits/s, format 8 bits, sans parit, 1 bit stop. protocole UNI-TELWAY, ?CONF=PRO=UTW SPD=19200 vitesse 19200 bits/s. (le format est impos, l'adresse n'est pas modifie) Les paramtres non modifis restent la valeur prcdente si elle est correcte. Nota : Ecrire en majuscule les questions.
33

Liaison srie Terminal Windows sous PC

Modification de la configuration par envoi de fichier Il est possible de mettre la configuration de la communication dans un fichier texte prpar dans un diteur de texte (type bloc-notes de Windows). Cela permet d'viter de taper plusieurs fois la mme ligne de commande. Dans le bloc-notes, tapez la configuration que vous dsirez envoyer (par exemple ?CONF=PRO=UTW ADR=1 SPD=9600) puis sauvegarder le fichier. Le fichier doit se terminer par un CR ou un LF, il faur donc taper Enter ou Entre la fin de la ligne de configuration. F R A N A I S Dans le Terminal de Windows, dans le menu"Transferts", utiliser la commande "Envoyer un fichier texte", et slectionnez le fichier prcdemment sauvegard. Il sera transmis immdiatement sur la liaison srie et la rponse de l'option communication s'affichera l'cran.

Aide la configuration Il est possible d'avoir une aide sur les mnmoniques employs. Question d'aide gnrale : ?HELP Rponse : ?HELP PRO ADR SPD FOR Question d'aide sur un paramtre : ?HELP PRO Rponse : >HELP PRO : PRO=UTW ou RTU, ASC

Information Pour identifier l'Altistart et l'option que vous utilisez, il est possible d'envoyer la question suivante : Question d'information : ?INFO Exemple de rponse : >INFO:C1:V:1.0 IE01H TYPE:01H CS9B5AH ATS46D32 : V1.1 Dans cet exemple, l'option communication C1 (=VWG46301) a une version de logiciel V1.0 IE01 (IE = indice d'volution) de type standard et dont le programme a pour checksum H'9B5A'. L'Altistart est un ATS-46D32 de version de logiciel V1.1. Nota : le checksum donn dans la rponse n'est pas la valeur exacte pour le logiciel V1.0, mais n'est indiqu que pour expliquer le format de la rponse.

34

Liaison srie ASCII


Dfinition du protocole
Le dialogue est de la forme question / rponse : Le matre pose une question et attend la rponse dans un certain dlai (50 250 ms). En cas d'erreur (erreur de parit, de trame) le dmarreur ne rpond pas. Dans ce cas vrifier que l'ensemble des paramtres de la liaison est correct ainsi que le cble. Les messages sont dlimits par un caractre de dbut : ? pour une question, > pour une rponse et des caractres de fin : LF CR.

Question Dbut ? Code question Voir table page 33 Data 1 Numro du mot ou du bit Sparateur (*) 1 ou 2 caractres <SP> ou @ Data 2 (*) Valeur Fin ou <LF> ou <CR> F R A N A I S

(*) pour criture uniquement Data 1 : Numro du mot ou du bit : entier compris entre 0 et + 65535. Le signe = est facultatif ainsi que les zros gauche. Exemple : 55 ou +00055 Data 2 : Valeur du mot ou du bit : - Mot : entier compris entre 0 et + 65535. Le signe = est facultatif ainsi que les zros gauche. Exemple : 55 ou +00055 -2345 ou -02345 - Bit : 0 ou 1. Rponse Dbut > Code rponse Voir table page 33 Data 3(**) Valeur Fin <LF> <CR>

(**) pour lecture uniquement Data 1 : - Mot : 6 caractres, format fixe Exemples : +00034 - Bit : 0 ou 1.

35

Liaison srie ASCII


Table des requtes Code question Lecture bit Ecriture bit Lecture mot Ecriture mot Miroir Lecture de 10 mots F R A N A I S A B C D M E Code rponce Positive A Y C Y M E

Ngative N N N N N N

Cas de rponse ngative : - Numro de bit ou mot inexistant. - Code question inexistant. - Format de la question incorrect (mais avec premier caractre = ?). - Ecriture alors que le variateur n'est pas en mode LIGNE. - Changement de mode de fonctionnement alors que le moteur n'est pas l'arrt. - Changement de mode de fonctionnement qui ne correspond pas au diagramme. La requte E permet de lire ou d'crire 10 mots la suite. Test de la communication, miroir La requte miroir retourne la chane de caractres envoye et peut tre utilise pour le test de la communication. Question : Rponse : Lecture bit Bit de suppression du contrle de communication : Lecture du bit B4 Question : Rponse : Rponse : Ecriture bit Passage en mode LIGNE : criture de la valeur 1 dans bit B2. Question : Rponse : Lecture mot Valeur de la sortie logique LO1 : lecture du mot W4023. Question : Rponse : Ecriture mot Consigne de couple maximal 100 % Cn : criture du mot W4036. Question : Rponse : ?D4036<SP>100<LF><CR> >Y<LF><CR> ?C4023<LF><CR> >C+00100<LF><CR> (Valeur LO1 = 100%) ?B2<SP>1<LF><CR> >Y<LF><CR> ?A4<LF><CR> ou ?A+00004<LF><CR> >A0<LF><CR> si bit = 0 (contrle actif) >A1<LF><CR> si bit = 1 (contrle inactif) ?M12345<LF><CR> >M12345<LF><CR>

36

Diagnostic
Dfaut
Pour la signification des codes, se reporter aux pages indiquant les mots de signalisation.

Diagnostic complmentaire
Vrifier l'tat des 2 voyants situs sur la face avant de l'option : COM : voyant rouge ; OK : voyant vert

COM OK

Interface de communication

RS232/422/485

Etats des voyants : 0 = teint 1/2 = clignotant lent (500 ms) 1 = allum 1/10 = clignotant rapide (100 ms)

F R A N A I S

Voyant OK vert 1 0 0

Voyant COM rouge 0 0 1

Causes probables Fonctionnement normal, bus et produit prsents Hors service, hors tension Dfaut de communication sur le bus

Actions correctives OK Vrifier l'interface ou l'option Vrifier le bus de communication et la connectique. Vrifier les commutateurs des prises abonnes Vrifier la configuration de la communication ou le strap TER/- 5 V (absent en protocole ASCII/prsent en protocole bus) Configurer la communication Vrifier le connecteur 6 points entre l'option et l'Atistart Vrifier le connecteur 6 points entre l'option et l'Atistart

1/10 * (6x)

Erreur caractre

1/10 1/2

0 0

Option communication non configure Dfaut communication entre l'option de communication et l'Atistart (cble bus connect sur option) Dfaut communication entre l'option de communication et l'Atistart (cble PC connect sur option)

1/2

* Cet affichage est un clignotement d'une dure de 600 ms (3x allum et 3x teint) si un caractre erron a t reu. Ce clignotement court est rpt aprs une priode de cinq secondes d'extinction si un caractre reu est erron. Il n'a lieu que lorsque l'option communication est en dfaut communication (pas de message reu depuis 10 s en communication bus ou 1 s en protocole ASCII). Dans le cas o l'option ne passe jamais en fonctionnement normal, cet affichage indique que le cblage est certainement correct (sauf peut-tre le strap TER/- 5 V) mais que la configuration est inadapte (vitesse ou format).
37

Index par fonctionnalits


Type : C : Commande : R : Rglage : F : Configuration ; S : Signalisation
Description Retour aux rglages usine Boucle de contrle Dmarrage Type C F C R R R R F, F, F, F, S S S S S S C C C C C F R R R R S Protections moteur C F, R F, R F F S F, R Critre Suivant position du switch sur produit (standard/svre) Code CMD, INT Adresse W4060, D W4035, 0 W4060, 5 W4043 W4037 W4036 W4039 W4032 W4028 W4033 W4027 W4061, 4 W4061, 1 W4061, 8 W4061, 9 W4061, D W4061, B Page 14 13 14 12 12 12 12 13 13 13 13 15 15 15 15 15 15 13 14 14 14 14 13 12 12 12 12 15 14 13 13 13 14 15 12 13 15 15 15 15 16 15 16 14 16 14 14

Slection boucle ferme (commande en couple) CNF, CLP boucle ouverte (rgulation de tension) - Commande de marche - Pente de la rampe d'acclration - Couple initial en acclration - Couple max en acclration - Courant de limitation - Rglage de la temporisation avant dmarrage - Niveau de boost - Temps de dmarrage trop long - Compensation pertes stator - Chauffage moteur - Dmarreur prt - En rgime permanent - En rgime court-circuit - En limitation de courant - En phase d'acclration Verrouillage moteur l'arrt Commande d'arrt roue libre Commande d'arrt dclr Commande d'arrt frein Commande dclration moteur en cascade Slection type d'arrt (roue libre, dclr, frein) via LI_STOP (bornier) - Si dclr :pente de la rampe de dclration couple final en dclration - Si frein : intensit de freinage ajustement du temps de freinage - En phase d'arrt RAZ tat thermique Seuil de dclenchement (sous-charge) Courant nominal moteur Protection thermique moteur Inhibition des protections Etat thermique moteur CMD, RUN ACC TQ0 TLI ILT TBS BST TLS LSC ETA, HEA ETA, RDY ETA, 8 ETA, 9 ETA, LIM ETA, B

F R A N A I S
Arrt

R R R R

VMA W4020 CMD, CAL W4060, 8 CMD, CAD W4060, 7 CMD, CAF W4060, 6 DMC W4060, 3 STY W4029 DEC EDC BRC EBA ETA, A W4044 W4038 W4041 W4042 W4061, A

CMD, RTH W4060, A ULL W4031 In W4026 THP W4034 INH W4060, B LTH W4064 OIL PHR PHE ETA, E ETA, F LCR COS LTR TFR TRE LPR CNF, SST CSC W4040 W4030 W4065 W4061, E W4061, F W4062 W4067 W4063 W4068 W4060, C W4072 W4035, 5 W4035, 6

Protection dmarreur

- Seuil de courant de dclenchement Affectation dfaut rotation de phase Etat rotation de phase Absence rseau Frquence rseau Courant Cos Couple Compteur d'heure RAZ du compteur d'heure Puissance active moteur

Rseau d'alimentation F S S S Mesures S S S S S S F C

Fonctionnements particuliers

- Essai sur moteurs de faible puissance - Configuration moteur en cascade

38

Index par fonctionnalits


Type : C : Commande : R : Rglage : F : Configuration ; S : Signalisation
Description Gestion des E/S Type F F F F F, R F F S S Critre Affectation entre logique LI Affectation sortie logique LO1 Affectation sortie logique LO2 Affectation sortie analogique AO Echelle sortie analogique Plage de la sortie analogique Affectation relais R1 Etat des E/S Valeur sortie analogique AO Code LI LO1 CNF, LO2 AO ASC CNF, AO1 CNF, R1 LIO SAO Adresse W4022 W4023 W4035 W4024 W4025 W4035, 4 W4035, 2 W4066 W4070 Page 13 13 13 13 13 13 13 16 16

Gestion de la communication et bornier

C C C F F F F S S S C C C F S S S S S S S S S S S S S S S S S S S C R R

Affectation des commandes en ligne Mmorisation rglages en EEPROM Rappel des rglages en EEPROM Adresse produit Protocole Vitesse de transmission Format de caractres En mode local / ligne Arrt demand par bornier En forage local Commande dfaut externe Commande de rarmement du dmarreur Suppression du contrle de la ligne Rarmement automatique Dmarreur en dfaut Contrle de la communication supprim Alarme seuil de courant Alarme thermique moteur Dfaut interne Dfaut court-circuit Dfaut inversion des phases Dfaut communication ligne Dfaut externe Dfaut dmarrage trop long Dfaut absence rseau et demande de marche Dfaut phase Dfaut thermique dmarreur Dfaut rotor bloqu en rgime permanent Dfaut surcharge thermique moteur Dfaut incohrence frquence rseau Dfaut sous-charge Alarme temporisation avant dmarrage Etat d'inhibition des protections

CMD, DLI CMD, MRE CMD, RRE ADR PRO SPD FOR ETA, LOC ETA, 3 ETA, FLO CMD, EFL CMD, RST CMD, NTO CNF, ARS ETA, FAI ETA, NTO ETA, 7 ETA, OVL DFT, INF DFT, OCF DFT, PIF DFT, SLF DFT, ETF DFT, STF DFT, USF DFT, PHF DFT, OHF DFT, LRF DFT, OLF DFT, FRF DFT, ULF

W4060, W4060, W4060, W2290 W2291 W2292 W2293 W4061, W4061, W4061, W4060, W4060, W4060, W4035, W4061, W4061 W4061, W4061, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4071, W4071,

1 E F

0 3 5 2 0 4 1 2 7 C 1 2 3 5 6 7 8 9 A B C D F 0 1

14 14 14 32 32 32 32 15 15 15 14 14 14 13 15 15 15 15 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 14 12 12 16 16 16

F R A N A I S

Gestion des dfauts et alarmes

Prchauffage moteur

- Commande de prchauffage moteur - Rglage du courant de prchauffage - Temporisation avant prchauffage - Ordre du dfaut - Recopie du registre de dfaut - Recopie du compteur d'heure

CMD, DCM W4060, 9 IPR W4045 TPR W4046 PTR DFT W4090 W4091 W4092

Historique des dfauts S S S

39

E N G L I S H

Although every care has been taken in the preparation of this document, Schneider Electric SA cannot guarantee the contents, and cannot be held responsible for any errors it may contain or for any damage which may result from its use or application. The hardware, software and services described in this document may be changed or modified at any time, either from a technical point of view or in the way they are operated. Their description can in no way be considered contractual.

40

Contents
Presentation Installing the communication option Connection to multidrop bus Communication principle Altistart 46 variables UNI-TELWAY requests MODBUS / JBUS protocol PC Windows
TM

42 43 44 to 46 47 to 49 50 to 54 55 to 57 58 to 68 69 to 72 73 and 74 75 76 and 77

Terminal serial link

ASCII serial link Diagnostics Index by function

E N G L I S H

WindowsTM is a trademark of Microsoft Corporation

41

Presentation
The communication option reference VW3-G46301 (also referred to as C1 in this document) is designed for use with the Altistart 46. It is designed to integrate these power switching components into modern control system architectures by enabling them to be connected to a multidrop industrial bus. Data exchanges enable all functions of the Altistart 46 to be used : communication configuration, function configuration, remote downloading of settings, control and supervision, monitoring and diagnostics.

The VW3-G46301 communication option is supplied with a 3m RS 485 connection cable fitted with a 9-pin SUB-D connector. Caution : To connect this communication option to a PC (Terminal software under WINDOWS or Altistart 46 PC software) for several configurations it is necessary to have an RS 232 PC connection kit, reference VY1-G461510. E N G L I S H This option manages the following protocols : UNI-TELWAY, MODBUS RTU/JBUS, MODBUS ASCII, ASCII for PC (specific to Telemecanique)

42

Installing the communication option

Before performing any work on the starter, disconnect the power supply.

Check that the starter is connected to earth. Mount the VW3-G46301 communication option on the starter, as shown in the above photograph. Connect the cable appropriate to the selected protocol : - the cable supplied with the option for an RS 485 connection with the UNI-TELWAY, MODBUS RTU/JBUS or MODBUS ASCII protocol, - the PC cable kit (VY1-G461510) for an RS 232 C connection with the ASCII terminal protocol (protocol specific to Telemecanique). Wire the Altistart in one of the following three ways : - 3-wire control, - emergency stop on LI STOP, - strap between LI STOP and PL (24 V). Note : Apply 24V power to the LI STOP terminal to control the system from the line. Configure the communication as described on pages 69 to 71.

E N G L I S H

43

Connection to multidrop bus


SUB-D connector pin configuration
The transmission interface is electrically isolated from the starter in accordance with the RS 485 and RS 422 (RS 232 C compatible) standard. It is available on a 9-pin female SUB-D connector. The TER/ input is used to select the ASCII protocol for PC when it is not connected, or the configured bus protocol when it is linked to the 5 V.

TER/ 5V 4,7 k TX transmission enable & E 4,7 k 0V 5V 0V D (B) D (A)

8 1 4 7 3 9

+5V TER/ D(B) RD(B)

5 9 4 8 3 7 2 6 1

SG = RD(B) 0V Alim. TX = D(A) RX = RD(A) RS232

E N G L I S H

5V 100 k RX & 100 k 0V 0V

RD (B) RD (A)

5 6 2

Side view of external contacts

Connection to standard RS 485 bus


(cable with 9-15 pin SUB-D connector supplied with the option) Pins to be used (side view of the 9-pin SUB-D connector of the option)

Recommendations
0V 4

D(B) 7 D(A) 3

TER/ 8 5V 9

use a shielded cable with 2 pairs of twisted conductors, connect the reference potentials to each other, maximum length of line : 1000 metres, maximum length of drop cable : 20 metres, do not connect more than 28 stations to one bus, cable routing : keep the bus away from the power cables (at least 30 cm), with any crossovers at right angles, and connect the cable shielding to the ground of each device, fit a line terminator at both ends of the line.

120 1 nF

Zt line terminator recommended at both ends of the line

44

Connection to multidrop bus


Various accessories are available to facilitate connection of equipment.

Cables for TSX-CSA100 : length 100 m(328 ft), TSX-CSA200 : length 200 m(656 ft), TSX-CSA500 : length 500 m(1,640 ft),

TSX-SCA62 subscriber connectors This passive unit consists of a printed circuit fitted with screw terminal blocks and enables two devices to be connected to the bus. It includes an end of line terminator when the connector is at the end.

Example of connection to UNI-TELWAY bus E N G L I S H

TSX-SCM 21.6 TSX-CSAXXX

TSX-CSB015

TSX-SCA62

VW3-G46301

VW3-G46301

VW3-G46301

ALTISTART 46

ALTISTART 46

ALTISTART 46

45

Connection to multidrop bus


Connection to standard RS 422 bus
Pins to be used (side view of the 9-pin SUB-D connector of the option)

0V 4

0V 4

D(B) 7 D(A) 3

D(B) 7 D(A) 3

or
RD(B) 6 RD(A) 2 TER/ 8 5V 9

RD(B) 6 RD(A) 2 TER/ 8 5V 9

E N G L I S H

RS 232 C connection
Pins to be used (side view of the 9-pin SUB-D connector of the option)

1 4

7 6 TX 3

data transmission common data reception


(1)

SG RX

5 2

TER/ 5V

8 9

(1) The TER / 5 V strap must not be present for ASCII protocol communication with a PC. However it is necessary for communication using the other protocols. The interconnection cable with 9-pin SUB-D connector and the 9-25 pin adaptor are used for connection to a PC. 46

Communication principle
Starter connection
The Altistart 46 can be connected in accordance with the diagrams in the catalogue. The communication function enables the starter fault relay to be used as an isolating relay (contacts available on terminals R1A-R1B). Using these contacts in the control circuit of the line contactor enables the power to be switched on and off remotely.

Altistart 46 states
The following diagram shows the four stable states of the starter.

Automatically resettable fault Automatic reset AUTOMATIC FAULT RESET

ZERO FAULT (Normal operation)

Fault resettable on request Reset request FAULT RESETTABLE ON REQUEST Non-resettable fault Non-resettable fault Starter reinitialization NON-RESETTABLE FAULT

E N G L I S H

1 - ZERO FAULT : in this state the fault relay is closed. 2 - AUTOMATIC FAULT RESET: this state follows a fault which may disappear without further intervention (power supply + RUN not present) or by successive attempts (phase, frequency failure). This state is only taken into account if word W4035,ARS has been configured to 1. If R1 is configured as a fault relay : this type of fault does not cause the relay to open. If R1 is configured as an isolating relay : this type of fault causes the relay to open. 3 - FAULT RESETTABLE ON REQUEST : this state occurs as soon as a fault appears which requires a check to be made to ascertain whether the product has been configured for automatic reset (W4035,1 = 1), or on the appearance of a fault which can be reset if the configuration is for automatic reset (W4035,1 = 0). 4 - NON-RESETTABLE FAULT : this state is reached when a serious fault occurs which requires corrective action (short-circuit fault, internal fault or inverted phase). In this case, the starter is reinitialized by cutting the power supply to the control card.

47

Communication principle
Data structure
The adjustment, control, supervision and monitoring of the Altistart 46 are performed using data (or objects) which are specific to this product. This data is of two types : BITS : named Bi (i = bit number) which are used to execute logic commands. Example : B1 = Starter reset (request for online reset) WORDS (of 16 bits) : named Wi (i = word number) to be used for storing either unsigned integer values (0 to 65535), or 16 independent logic states called registers (0 to 9 then A to F). Example : W4028 = Boost level (digital value) W4061 = Starter status register (16 status bits) Note : W4061,2 designates the bit in row 2 of register 4061.

Warning :
With the MODBUS protocol some programmable controllers do not use the word 0. In this case it is necessary to add 1 to each of the addresses. Example : W4028 becomes W4029. E N G L I S H

Accessing data
The following tables list the parameters which can be accessed via the communication link. The exact function of each parameter and its effect on the behavior of the starter are described in the user's guide for the display option, reference VD0C32Q302. Certain data can be accessed in both read and write : these are the bits and words corresponding to adjustments, configurations and commands. This data is used by the starter. Data generated by the starter can only be accessed in read : signalling or fault data, for example. If written, they have no meaning and are rejected.

Units
Words are always expressed as unsigned integer values (0 to 65535). The unit is defined for each of them. Example : W4037 = Initial torque, unit as a % of Tn (Eg : 50 = 50 % Tn) W4033 = Start (in seconds) too long

Ranges
The range permitted by the starter is specified for each parameter. 0* indicates that the value 0 is used to switch off the function. Example : W4036 = 0 no maximum torque limit, adjustment range from 10 to 200 (as a % of Tn)

Values on switching on
Each time the Altistart 46 is switched on it is initialized with the configuration and adjustments stored in its EEPROM memory (in LINE mode, storage of adjustments with W4060,E or return to factory settings with W4060,D). The starter is systematically set to LOCAL control mode (commands expected on the terminal block). To control it from a multidrop bus it is necessary to assign its commands to LINE mode : write word W4060 by setting bit 1 to 1.

48

Communication principle
LOCAL / LINE management
An ATS46 starter can operate in either of two control modes Operation in LOCAL mode via 2 or 3-wire terminal block control. Operation in LINE mode via a PC or a PLC. These operating modes are only effective for accessing the command parameters. They have no effect on the configuration, adjustment and monitoring parameters. Influencing parameters Command bit B2 (DLI) Bit of command word W4060,1 (DLI) Command bit B4 (NTO) Bit of command word W4060,4 (NTO) Configuration word W4022 (LI) Configuration word W4029 (STY) Bit of signalling word W4061,0 (LOC) Bit of signalling word W4061,5 (FLO) Bit of signalling word W4066,0 (LIO) Operation In LINE mode : the line has write access to the commands. Only LI_STOP is active on the terminal block and takes priority. Caution : the activation of LI, configured for local control, prevents any writing via the line. In LINE mode, messages must be regularly sent to the starter : at least one message every 10 seconds with UNI-TELWAY, MODBUS ASCII and MODBUS RTU, and every second in ASCII protocol. If no message is received a starter serial link fault (SLF) occurs. The communication check can be inhibited by setting bit NTO to 1, in which case the SLF fault never appears. In LOCAL mode : the line does not have write access to the commands. On the terminal block, LI, LI_RUN and LI_STOP are active. The starter can be changed to line mode by writing bit DLI (B2 or W4060,1) to 1. : Assignment of commands to LINE/LOCAL mode. : Assignment of commands to LINE/LOCAL mode. : Line check inhibited (SLF fault). : Same. : Assignment of LI to local control. : Selection of stop type via LI_STOP. : In local mode = 1, in line mode = 0. : Local control = 1, not local control = 0. : State of LI (0 = low, 1 = high). E N G L I S H

Typical example of operation A request or deactivation of local control causes a stop following STY : in 2-wire control : ATS46 in line mode and LI_RUN at 1, a local control request causes a stop according to the configuration of STY. The restart occurs immediately via LI_RUN. in 3-wire control : this is identical to 2-wire control, except that the restart only occurs immediately once LI_STOP is released and an LI_RUN pulse is given.

49

Altistart 46 variables
Command bits (read and write)
Bit B0 B1 Name RST DLI Description Starter reset command Assignment of command to LINE/LOCAL mode Function Acknowledges a correctable fault and resets the fault relay (= W4060,0) LINE = 1, LOCAL = 0 The starter can only be controlled via the serial link (bus or PC) or via its terminal block (= W4060,1) The starter triggers a EtF fault (= W4060,2) B3 B4 NTO Reserved Communication check inhibited Start command Braked stop command Freewheel stop command Reserved The starter does not trigger an SLF fault if the communication option has a NET fault (= W4060,4) 0 - inactive ; 1 - active 0 - inactive ; 1 - active 0 - inactive ; 1 - active (= W4060,5) (= W4060,6) (= W4060,7) (= W4060,8)

B2

EXT

External fault

B5 B6 B7 E N G L I S H B8 B9

RUN CAF CAD CAL

Decelerated stop command 0 - inactive ; 1 - active

Adjustment words (read and write)


Address W4036 W4037 W4038 W4039 W4040 W4041 W4042 Name TLI TQ0 EDC ILT OIL BRC EBA Range 0*, 10-200 0-100 0-100 Unit Description Possible values 0 = off

% of Tn Max torque during acceleration % of Tn Initial torque during acceleration % of Tn Final torque during deceleration

150-700 % of IN Limit current & <5.ICL 0*, 50-300 0-100 20-100 % of IN Trip current threshold Braking current 0 = off

% of Adjustment of pseudo continuous braking braking time time s s Acceleration ramp slope Deceleration ramp slope

W4043 W4044 W4045 W4046 W4047

ACC DEC IPR TPR GKI

1-60 1-60 0-100 0-99 20-50

% de Icl Adjustment of preheating current time (1) mn _ Time before preheating Integration gain in deceleration

(1) Do not exceed the value recommended by the motor manufacturer.


50

Altistart 46 variables
Configuration words (read and write)
Address W4018-4019 W4020 W4021 W4022 Name VMA Range Unit Description Reserved Motor locked when stopped Reserved Assignment of logic input LI Possible values read at 8000 H 0 - not locked 1 - locked when stopped read at 8000 H 0 - not assigned 1 - force freewheel 2 - external fault 3 - motor preheating 4 - force local control (0 = local, 1 = ligne) 5 - forced started in cascade 6 - protection inhibited 7 - reset motor thermal fault 8 - fault reset 0 - not assigned 1 - motor thermal alarm 2 - motor powered 0 - not assigned 1 - current 2 - load state 3 - thermal state 4 - power factor 5 - active motor power

LI

0-7

W4023

LO1

0-2

Assignment of logic output LO1

W4024

AO

0-4

Assignment of analog output AO

W4025 W4026 W4027 W4028 W4029

ASC IN LSC BST STY

50-500 (0.5-1.3)ICL

Analog output scale Motor nominal current according to the starter nominal current 0-80 % losses Stator loss compensation 0*, 50-100 % voltage Boost level 0-2 Selection of stop type via logic input LI_STOP 0-2 Default assignment of phase rotation

% 0.1 A

E N G L I S H

W4030

PHR

0 1 2 0 1 2

- freewheel - deceleration - braking - off - direct rotation direction - reverse rotation direction

W4031 W4032 W4033 W4034

ULL TBS TLS THP

0*, 20-100 (0-999) 0*, 10-999 0-7

% of Tn s second

Trip threshold (underload) Adjustment of the time before starting Start time too long Motor thermal protection

0 1 2 3 4 5 6 7 0 1 0 1 0 1

protection inhibited sub-class 2 class 10A class 10 sub-class 15 class 20 sub-class 25 class 30

W4035

CNF CLP ARS R1 LO2 AO1

Configuration register bit 0 : selection of closed loop, open loop bit 1 : Automatic reset bit 2 : Assignment of relay R1 bit 3 : Assignment of logic output LO2 bit 4 : Range of analog output

- open loop - closed loop - manual reset - automatic reset -fault relay -isolating relay

0 - not assigned 1 - current threshold alarm 0 - 0-20 mA 1 - 4-20 mA

0* : Function at OFF

51

Altistart 46 variables
Configuration words (read and write)
Address W4035 Name SST CSc Range Unit Description bit 5 : Selection of a test operation on a low power motor bit 6 : motors in cascade bit 7-F : reserved Possible values 0 - not assigned 1 - test function 0 - not active 1 - active

Command word (read and write)


Address W4060 Name CMD RST DLI EXT DMC NTO RUN CAF CAD CAL DCM RTH INH TRE INT MRE RRE Range Unit Description Command register bit 0 : Starter reset command bit 1 : Assignment of commands on line bit 2 : External fault command bit 3 : Control motor deceleration in cascade bit 4 : Line check inhibited (SLF fault) bit 5 : Start command bit 6 : Braked stop command bit 7 : Decelerated stop command bit 8 : Freewheel stop command bit 9 : Motor preheat command bit A : Reset motor thermal state bit B : Protection inhibited bit C : Reset of hour run counter bit D : Recall factory setting bit E : Store adjustments in EEPROM bit F : Recall adjustments in EEPROM 0 - inactive 1 - active on positive edge(1) 0 - inactive 1 - active on positive edge(1) 0 - inactive 1 - active on positive edge(1) 0 - inactive 1 - active (2) 0 - inactive 1 - active 0 - inactive 1 - active 0 - inactive 1 - active 0 - inactive 1 - active 0 - inactive 1 - active 0 - inactive 1 - active 0 - inactive 1 - active 0 - local 1 - line 0 - inactive 1 - active on positive edge(1) Possible values

E N G L I S H

(1) indicates that the bit returns to 0 after operation, (2) automatic return to 0 if another positive front does not appear within 10 seconds. Except in local control, the write operation is taken into account under the following conditions : if DLI = 1, bits RST, EFL, RUN, CAF, CAD, CAL, DCM, RTH are taken into account, the other bits are independent of DLI (NTO, TRE, INT, MRE, RRE).

52

Altistart 46 variables
Signalling words (read only)
Address W4061 Name ETA LOC RDY FAI Range Unit Description Starter status register bit 0 : In local/line mode bit 1 : Starter ready bit 2 : Starter faulty bit 3 : Stopped after request via terminal block HEA FLO NTO bit 4 : Motor heating bit 5 : Local control bit 6 : Communication check inhibited bit 7 : Current alarm threshold SST bit 8 : Steady state bit 9 : Short-circuit bit A : Stop phase bit B : Acceleration phase OVL LIM NLP bit C : Motor thermal alarm bit D : Current limited bit E : No mains supply bit F : Mains supply frequency W4062 W4063 W4064 W4065 LCR LTR LTH PHE 0 to 999 1-255 1-250 0-2 A/10 Current 0 - local 1 - line 0 - false 1 - true 0 - normal operation 1 - faulty 0 - false 1 - true 0 - false 1 - true 0 - false 1 - true 0 - false 1 - true 0 - false 1 - true 0 - false 1 - true 0 - false 1 - true 0 - false 1 - true 0 - false 1 - true 0 - false 1 - true 0 - false 1 - true 0 - false 1 - true 0 - 50 Hz 1 - 60 Hz Possible values

E N G L I S H

% of Tn (1) Torque % Motor thermal state Phase rotation state 0 - off 1 - direct rotation direction 2 - reverse rotation direction

W4066

LIO

State of logic I/O bit 0 : Logic input LI bit 1 : Logic output LO1 bit 2 : Logic output LO2 bit 3 : Relay R1 0 - low 1 - high 0 - low 1 - high 0 - low 1 - high 0 - open 1 - closed

(1) Tn : Nominal torque

53

Altistart 46 variables
Signalling words (read only)
Address W4066 Name Range Unit Description bit 4 : Relay R2 bit 5 : Vigitherm bit 6 : Logic input LI_RUN bit 7 : Logic input LI_STOP bit 8 : Operating duty switch bit 9-F : Reserved W4067 W4068 W4069 COS TFR DFT 1-100 (0-65535) % hours Cos Hours counter Fault register bit 0 : Reserved by JC08 Possible values 0 - open 1 - closed 0 - T overshoot 1 - closed 0 - low 1 - high 0 - low 1 - high 0 - standard 1 - severe

E N G L I S H

INF OCF PIF

bit 1 : Internal fault bit 2 : Short-circuit bit 3 : Phase inversion bit 4 : Reserved

SLF ETF STF USF PHF OHF LRF OLF FRF

bit 5 : Line communication fault bit 6 : External fault bit 7 : Start too long bit 8 : Mains failure and start request bit 9 : Phase failure bit A : Starter thermal fault bit B : Rotor locked in steady state bit C : Motor thermal overload bit D : Mains supply frequency incoherent bit E : Reserved

ULF W4070 W4071 SAO

bit F : Underload Value of analog output AO bit 0 : alarm time before starting (TBS) bit 1 : state of protection inhibition 0 - not active 1 - active 0 - not active 1 - active

W4072 W4090 W4091 W4092

LPR PTR DFT

0-255

Active motor power Fault order Fault register repetition Time counter repetition (W4068)

54

UNI-TELWAY requests
List of requests
The following table lists the requests accepted by the Altistart 46 and their usage limits. Detailed information on coding requests is given in the UNI-TELWAY reference manual.

Request Identification Protocol version Status Mirror Read error counters Reset counters Read a bit Write a bit Read a word Write a word Read objects Write objects Event data

Code (hex) H0F H30' H31' HFA HA2' HA4' H00' H10' H04' H'14' H36' H37'

Altistart 46 Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes 63 words max* 60 words max Yes 2 words

* Only 27 words are used for the Altistart 46

E N G L I S H

Identification request
Response code Product type Sub-type Product version ASCII* string = H'3F' = H'16' for Altistart = H'46' Altistart 46 = H'XX' software version (eg : H'21' for V2.1) = product symbol (eg : ATS-46D17N)

* The first byte of an ASCII string always corresponds to the length of the string.

Request status
Response code Current state = H'61' = H'XX' bit 0 : internal fault bit 1 : resettable faults bit 2 : non-resettable faults bit 3 : not significant bit 4 : not significant bit 5 : not significant bit 6 : starter stationary (RDY or SLC or fault) bit 7 : starter in LOCAL control = H'C7' indicates the significant bits of the current state

Status mask

55

UNI-TELWAY requests
Requests to read and write objects
These requests are used to access several words within the limits specified on the previous page. These requests can be coded by specifying : Question code (TXTi,C) Category Segment Object type = H36' (read) or H37' (write) = 0...7 = H68' (internal word) = H06' for a byte (8 bits) in read-only, or H07' for a word (16 bits) in read and write = Hxxxx

Object address Etc. Reserved or unused words are read at 0 and writing them has no effect. The response to the request "write objects" is accepted if at least one word is written. Example : programming on a TSX7 PLC with the use of text blocks. READ words W4022 to W4025 of the Altistart 46. Using word type object = H07' Transmission text block TxTi,C = H0736' (category + request) TxTi,L = 6 + transmission table Internal word segment Word type
W4023 (low order) H'07' 4023 4 H'68'

E N G L I S H

Reception text block TxTi,V = H66' (confirm) TxTi,S = 9 (9 bytes received) + reception table

H'07'

W4024 (low order) W4023 (high order) W4025 (low order) W4024 (high order) W4026 (low order) W4025 (high order) W4026 (high order)

4 words to read Number of first word The data received in the reception table is offset by one byte. It is the application program which must correct the data (for example by successive offsets) before using it.

56

UNI-TELWAY requests
Using byte type object = H'06' Transmission text block TxTi,C = H'0736' (category + request) TxTi,L = 6 + transmission table Internal word segment Byte type
W4022 (high order) W4023 H'06' 8045 9 H'68' W4024 W4025 W4026 H'06'

Reception text block TxTi,V = H'66' (confirm) TxTi,S = 10 (10 bytes received) + reception table

9 bytes to read (high order byte of W4022 + 8 bytes comprising W4023 to W4026) Number of first byte (the high order byte of W4022 has address 2 x 4022 + 1 = 8045) E N G L I S H

This programming enables words to be correctly positioned in the reception table.

Event data
The Altistart 46 transmits data on its own initiative to the UNI-TELWAY link master without having first received a question. This data is sent via the "unsolicited data" request and does not require a response from the receiver. Data is transmitted in the following two cases : When a fault appears or disappears (rising or falling edge at status register bit W4061,2), When the starter is controlled locally via its logic input, if it has been assigned to this function via word W4022. Size of event data : 2 words of 16 bits sent in the following order : ETA status register (word W4061), DFT fault register (word W4069). Summary : The use of event data with a TSX PLC requires : Correct configuration of the UNI-TELWAY link master module, Regular monitoring of the indicators which display changes in the value of the data, Acquisition of this data via the request to read event data.

57

MODBUS / JBUS protocol


General
The exchange of data between computer systems, PLCs and other intelligent systems must be performed using a common language. This language must be as simple as possible and understood by everyone involved. Nevertheless it must be possible to check every exchange to ensure the integrity of transfers. The variables exchanged are then inserted in a frame which generally comprises the following :
Header Address Request Data Check End

Each protocol defines the presence, the format and the contents of the various groups of variables which surround the data zone. This structuring makes it possible to define the start and size of messages, if necessary the system to which the data is addressed, the type of function required, the variables themselves, a control parameter and an end code which validates the whole message. The form and content of this frame is different for each type of protocol. In the remainder of this document the MODBUS and JBUS functions will be referred to under the term MODBUS. E N G L I S H

MODBUS frames
Two transmission modes can be used, only one of them being used in a system. RTU mode The frame defined for the MODBUS protocol has neither message heading bytes, nor end of message bytes. It is defined as follows :
Address Request Data CRC16

The data is transmitted in binary code. CRC16 : cyclical redundancy check. The end of frame is detected on a silence of 3 characters or more. ASCII mode The frame is complete and is defined as follows :
Header Address Request Data LRC End : CR LF

header = ":" (H3A'), data is coded in ASCII : each byte is divided into 2 four-bit bytes, each of which is coded by an ASCII character (0 to F), LRC : longitudinal redundancy check, end : "CR" "LF" (H0D' and H0A').

58

MODBUS / JBUS protocol


Principle
The MODBUS protocol is a dialogue protocol which creates a hierarchical structure (a master and several slaves). The MODBUS protocol enables the master to interrogate one or more intelligent slaves. A multidrop link connects the master and slaves. Two types of dialogue are possible between master and slaves : the master talks to a slave and waits for its response, the master talks to all the slaves without waiting for a response (broadcasting principle). The slaves are numbered from 1 to 31 and number 0 is reserved for broadcasting.

Master

The master manages the exchanges and only it can take the initiative. The master repeats the question when there is an incorrect exchange, and declares the interrogated slave absent if no response is received within a given time envelope. Only one device can transmit on the line at any time. No slave can send a message itself unless it is invited to so.

E N G L I S H

Slave j Slave i Slave k

Note No lateral communication (i.e. slave to slave) can be performed directly. The application software of the master must therefore be designed to interrogate a slave and send back data received to another slave.

59

MODBUS / JBUS protocol


Accessible data
The MODBUS protocol enables data (bits and words) to be exchanged between a master and several slaves, and checks these exchanges. Consequently, bit areas are defined in each slave unit which will be read or written by the master. An input object can only be read. An output object can be read or written.
Slave i

Master
Transmission table

MODBUS addressing

Slave j

Input bits

E N G L I S H

Output bits

User program

Input words

Reception table

Output words

Slave k

Exchanges
The master, or supervision device, takes the initiative in exchanges. This master addresses a slave by supplying it with four types of data : the address of the slave, the function required of the slave, the data area (variable depending on the request), the exchange check. The link master waits for the response of the slave before transmitting the next message, thus avoiding any conflict on the line. Operation in half-duplex is therefore authorized.

60

MODBUS / JBUS protocol


Control and monitoring
All control of exchanges between two units which are communicating via an asynchronous serial link naturally includes exception messages when exchange faults occur. Various incorrect messages may be sent to a slave. In this event, the slave will tell the master that it does not understand, and the master will decide whether or not to repeat the exchange.

Master

ATS 46

The master has access to a certain amount of data which is stored and managed by the slave. The master can access this data using special function codes (diagnostic mode, read event counter, etc).

MODBUS functions
MODBUS functions include : main functions for exchanging data, additional functions for exchange diagnostics. The following table shows the functions which are managed by the Altistart 46 communication option, and specifies their limits. Definition of "read" and "write" functions are understood from the point of view of the master.
Code 01 02 03 04 05 06 08 11 16 Type of function Read N output bits Read N input bits Read N output words Read N input words Write one output bit Write one output word Diagnostics (see details below) Read event counter Write N output words B Altistart 46 1 max 1 max 29 max 29 max Yes Yes Yes Yes 28 max

E N G L I S H

B B

Functions marked B can be broadcast. The message transmitted by the master must specify a slave number = 0. A response message is never returned.

61

MODBUS / JBUS protocol


Detailed information on functions
Code 01 : read N output bits. This function is used to read output bits (bits which can be written and read in the slave by the master). read N input bits. As above, but applies to input bits (bits which the master can only read). read N output words. This function is used to read output words (words which can be written and read in the slave by the master). read N input words. As above, but applies to input words (words which the master can only read). write an output bit. Used to set an output bit to 0 or 1 (can only be accessed in write). write an output word. Used to write a 16-bit output word (can only be accessed in write).

Code 02 :

Code 03 :

Code 04 :

Code 05 :

Code 06 : E N G L I S H

Diagnostic function code 08 is always accompanied by a sub-code. Code 08/00 : echo. This function requests the interrogated slave to send back the whole message sent by the master. channel reinitialization. This function is used to reinitialize communication of a slave and in particular to make it leave listen only mode (LOM) by sending data item H'0000 or H'FF00. change of ASCII delimiter. In ASCII mode, messages are delimited by the line feed character (LF = H0A). This function is used to change this character. change to LOM mode. This function is used to command a slave to change to listen only mode (LOM). In this mode the slave does not process messages which are addressed to it, and only transmits a response when the channel is reinitialized. counter reset. This function resets all the counters monitoring the exchanges of a slave. number of correct messages seen on the line without CRC or checksum error. This function reads a 16-bit counter (incremented from 0 to HFFFF) which totals the messages seen on the line and processed by the slave.

Code 08/01 :

Code 08/03 :

Code 08/04 :

Code 08/0A :

Code 08/0B :

62

MODBUS / JBUS protocol


Code 08/0C : number of messages received with checksum error (reads a 16 bit counter). number of exception responses. Reads a 16-bit counter which totals the number of exception messages transmitted to the master by a slave (following an incorrect frame). number of messages addressed to the slave except for broadcasts. Reads a 16-bit counter which totals the number of all types of messages addressed to the slave. number of broadcast messages received. Reads a 16-bit counter which totals the number of all types of messages addressed to the slave. reads the number NAQ responses. The value read is always 0. reads the number of non-ready responses from the slave. The value read is always 0. reads the number of characters which are not processed (incorrect). read event counter. a status (always zero), a counter which is incremented each time a correct message sent to the slave is received (form and content), except for exception messages. write N output words. This function enables the master to write output words to the slave (words which can be written or read). E N G L I S H

Code 08/0D :

Code 08/0E :

Code 08/0F :

Code 08/10 : Code 08/11 :

Code 08/12 : Code 11 :

Code 16 :

63

MODBUS / JBUS protocol


Details of frames (RTU mode)
Read N bits : function 1 or 2 Question
Slave no. 1 byte 01 or 02 1 byte No. of 1st bit Hi Lo 2 bytes Number of bits Hi Lo 2 bytes CRC16 2 bytes

Response
Slave no. 1 byte 01 or 02 1 byte Number of bytes read 1 byte Value -----------Value CRC16 2 bytes

Example : read bit B4 of slave 2 Question E N G L I S H Response


02 02 02 01 01 01 0004 01 01 0001 00 01 BC38 51CC 900C

if B4 = 0 if B4 = 1

Bit B4 can always be used and can be read at 1 or at 0.

Read N words : function 3 or 4 Question


Slave no. 1 byte 03 or 04 1 byte No. of 1st word Hi Lo 2 bytes Number of words Hi Lo 2 bytes CRC16 2 bytes

Response
Slave no. 1 byte 03 or 04 Number of bytes read 1 byte Value of 1st word Hi Lo 2 bytes Value of last word Hi Lo 2 bytes CRC16

-------

1 byte

2 bytes

Example : read words W4023 to W4026 of slave 2 Question Response


02 02 04 04 0FB7 08 0004 xxxx 42C8
----------------------

xxxx

CRC16

Value of W4023

Value of W4026

64

MODBUS / JBUS protocol


Write an output bit : function 5 Question
Slave no. 1byte 05 1 byte Bit no. Hi Lo 2 bytes Bit value 2 bytes CRC16 2 bytes

The "bit value" field has two possible values only, and can take no other value : bit at 0 = 0000 bit at 1 = FF00

Response
Slave no. 1 byte 05 1 byte Bit no. Hi Lo 2 bytes Bit value 2 bytes CRC16 2 bytes

Example : write value 1 in bit B2 of slave 2 Question & response


02 05 0002 FF00 2DC9

Write an output word : function 6 Question


Slave no. 1 byte 06 1 byte Word number Hi Lo 2 bytes Word value Hi Lo 2 bytes CRC16 2 bytes

E N G L I S H

Response
Slave no. 1 byte 06 1 byte Word number Hi Lo 2 bytes Word value Hi Lo 2 bytes CRC16 2 bytes

Example : write value H'000D' = 13 in word W4043 of slave 2 ( ACC = 13 s ) Question & response
02 06 0FCB 000D 3AD6

65

MODBUS / JBUS protocol


Diagnostic : function 8 Question and response
Slave no. 1 byte Sub-code 00 01 03 04 0A 0B 0C 0D 0E 0F 10 11 12 08 1 byte Sub-code 2 bytes Data 2 bytes Response data XX YY 00 00 XX 00 No response 00 00 XX YY XX YY XX YY XX YY XX YY 00 00 00 00 XX YY CRC16 2 bytes Function executed Echo Reinitialization XX = new delimiter Change to LOM mode Reset counters to 0 XXYY = counter value XXYY = counter value XXYY = counter value XXYY = counter value XXYY = counter value Always read as 0 Always read as 0 XXYY = counter value

E N G L I S H

Question data XX YY 00 00 XX 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Read event counter : function 11 ( H'0B' ) Question


Slave no. 1 byte 0B 1 byte CRC16 2 bytes

Response
Slave no. 1 byte 0B 1 byte 00 2 bytes 00 Counter value Hi Lo 2 bytes CRC16 2 bytes

Write N output words : function 16 (H'10' ) Question


Slave no. 1 byte 10 1 byte No. of 1st word Number Number Hi Lo of words of bytes 2 bytes 2 bytes 1 byte Value of 1st word CRC16 ---Hi Lo 2 bytes 2 bytes

Response
Slave no. 1 byte 10 1 byte No. of 1st word Number of words Hi Lo Hi Lo 2 bytes 2 bytes 2 bytes CRC16

Example : write values 2 and 3 in words W4043 and W4044 of slave 2 Question Response
02 02 10 10 0FCB 0FCB 0002 0002 04 3311 0002 0003 1139

66

MODBUS / JBUS protocol


Exception responses
An exception response is given by a slave when it is unable to execute the request which is addressed to it. Format of an exception response :
Slave no. 1 byte Response code 1 byte Error code 1 byte CRC16 2 bytes

Response code : function code of the request + H80 (the most significant bit is set to 1). Error code : 1 = the function requested is not recognized by the slave. 2 = the bit and word numbers (addresses) indicated in the request do not exist in the slave. 3 = the bit and word values indicated in the request are not permissible in the slave. 4 = the slave has started to execute the request, but cannot continue to execute it completely. E N G L I S H

CRC16 calculation
The CRC16 is calculated on all the bytes of the message by applying the following method. Initialize the CRC (16-bit register) to HFFFF. Enter the first to the last byte of the message : CRC XOR <byte> > CRC Enter 8 times Move the CRC one bit to the right If the output bit = 1, enter CRC XOR HA001> CRC End enter End enter The low order byte of the CRC obtained will be transmitted first, followed by the high order ones. XOR = exclusive OR.

67

MODBUS / JBUS protocol


ASCII Mode
In this mode, the MODBUS frame has the following structure : Slave no. Function Data LRC --------------------code Hi Lo CR LF

Data identical to RTU mode, but coded differently Delimiters : ":" = H3A, CR = H0D, LF = H0A. Data : the data field is analogous to the RTU frames, but coded in ASCII characters. Each byte is separated into 2 four-bit bytes, each of which is coded by its ASCII equivalent. Example : the byte containing the slave number 06 will be coded by 2 ASCII characters "0" and "6", i.e. by H30' and H36'. LRC : enter hexadecimal sum of the contents of the frame (without the delimiters) before ASCII coding, 2's complement. The byte obtained is then coded in the form of 2 ASCII characters as above. Example : write value 1 in bit B2 of slave 2 Question and response Hexadecimal

E N G L I S H

3A ASCII :

30 32 30 35

30303032

46463030

4638

0D

0A

02

05

0002

FF00

F8

CR

LF

LRC calculation Sum of the bytes in the frame : H'02' + H'05' + H'00' + H'03' + H'FF' + H'00' = H'109' = 265 Sum modulo 256 : H'09' = 9 Sum modulo 256 2's complement : H'100' - H'09' = 256 - 9 = 247 = H'F7'

68

PC Windows Terminal serial link


General
The C1 option can communicate with a PC via the WINDOWS Terminal software. This software, using requests in ASCII protocol (Telemecanique) can access all the functions of the product. Caution : the PC cable must be used to link the option to the microcomputer. This software is also used to access the configuration of communication on the bus (see following pages).

Definition of the WINDOWS Terminal link


Master (PC) - slave (ATS46) type link, 9600 bits/s asynchronous. Format : 1 start bit, 8 data bits, 1 odd parity bit, 1 stop bit. Note : The format and the speed are fixed. Configuration : 1 - Enter under WINDOWS Terminal. 2 - Terminal menu : Parameters ; Terminal Emulation : TTY (Generic) E N G L I S H

3 - Terminal menu : Parameters ; Terminal Parameters : [Terminal mode] [CR > CR/LF] new line input local echo output 4 - Terminal menu : Parameters ; Communication : . Transmission speed . Data bits . Stop bits . Parity . Flow control . Ports : : : : : : 9600 8 1 Odd None COM1 (or other if used)

Note : If selecting the parity bit changes the number of data bits to 7, change the number of stop bits to 2, (this restores the number of data bits to 8), then return the number of stop bits to 1. It is advisable to save the Terminal configuration in a . trm file.

69

PC Windows Terminal serial link


Configuring the bus communication using Terminal under WINDOWS
The configuration parameters for the communication option can be read using any protocol. They can only be written in ASCII protocol (Telemecanique). The ASCII protocol is selected using a cable with no strap between TER/ and 5 V. If TER/ is linked to 5 V, the configured protocol is the one which is used. Configuration parameter values
Address W2290 Parameter Product address (ADR) Protocol (PRO) Selected protocol Permitted values ASCII ADR 0 1 to 31 W2291 UNI-TELWAY MODBUS RTU MODBUS ASCII 2 3 4 5 2 3 4 5 6 7 8 W2293 Format (FOR) 2 3 4 5 6 7 8 9 UTW MODBUS RTU MODBUS ASCII 2 2 to 5 2 to 9 NO value PRO UTW reserved RTU ASC SPD 300 600 1200 2400 4800 9600 19200 FOR 8O1* 8E1 8N1 8N2 7O1 7E1 7O2 7E2 8O1 cannot be modified 2 7 300 bits/s 600 bits/s 1200 bits/s 2400 bits/s 4800 bits/s 9600 bits/s 19200 bits/s 2 Default value 0 address not configured station address Comments

E N G L I S H

W2292

Speed (SPD)

* 8O1 : (number of bits) - ( O : ODD - E : EVEN ) - (number of stop bits) Example 8O1 : 8 odd bits, 1 stop bit

70

PC Windows Terminal serial link


Configuring the bus communication using Terminal under WINDOWS
Format of ASCII messages for communication using Terminal PC (Master) ATS46 (Slave) where : {data} {end} question : response : ?{Data}{End} >{Data}{CR LF}

question or response data in ASCII characters one or two end characters CR or LF or CR LF or LF CR. (CR = Carriage Return = H'OD'; LF = Line Feed = H'OA'). {CR LF} CR followed by LF

Note : in the remainder of this section the end characters are not shown. Caution : the communication option does not use the DEL key. If you use it, the echo of your message on the screen may seem correct, but the message will be refused. If the question or a requested value is not correct, the response is : >N Reading the configuration question : response (factory configuration) : ?CONF >CONF:PRO:UTW ADR:NO SPD:9600 FOR:8O1

The configuration read is : UNI-TELWAY protocol, address not configured, speed 9600 bits/s, 8 bit format, odd parity, one stop bit. The meaning of the response parameters is given in the "ASCII" column of the table on page 70.

E N G L I S H

Modifying the configuration Any change to the configuration is saved in the Altistart memory. The response format when modifying the configuration is identical to that when entering the configuration. The parameters are given in the table on page 70. The mnemonics are given in the "ASCII" column and the possible values for the protocol in the "permitted values" column. The parameters can be modified one by one. Examples of questions : address 1 ?ADR = 1 UNI-TELWAY protocol ?PRO = UTW speed 19200 bits/s ?SPD = 19200 8 bit format, odd parity, 1 stop bit ?FOR = 8O1 Several parameters can be modified in one question. Examples of questions : MODBUS RTU protocol, address 1, ?CONF=PRO=RTU ADR=1 SPD=4800 FOR=8O1 speed 4800 bits/s, 8 bit format, no parity, 1 stop bit. UNI-TELWAY protocol, ?CONF=PRO=UTW SPD=19200 speed 19200 bits/s. (the format is fixed, the address is not modified) Parameters which are not modified retain their previous value, if it is correct. Note : Write down the questions in upper case letters.
71

PC Windows Terminal serial link

Modifying the configuration by sending a file It is possible to enter the communication configuration in a text file prepared using a text editor (Windows notepad type). This avoids having to type the same command line several times. Type the configuration you wish to send (for example ?CONF=PRO=UTW ADR=1 SPD=9600) in the notepad, then save the file. The file must end with a CR or LF : press Enter at the end of the configuration line. In the Windows Terminal "Transfers" menu, use the command "Send a text file", and select the file which was previously saved. It will be transmitted immediately via the serial link and the response from the communication option will be displayed on the screen.

Configuration help Help can be provided on the mnemonics used. General help request : ?HELP Response : ?HELP PRO ADR SPD FOR E N G L I S H Request for help on a parameter : Response : ?HELP PRO >HELP PRO : PRO=UTW or RTU, ASC

Information To identify the Altistart and option you are using, the following question can be sent : Information request : ?INFO Response example : >INFO:C1:V:1.0 IE01H TYPE:01H CS9B5AH ATS46D32 : V1.1 In this example, the communication option C1 (=VWG46301) has software version V1.0 IE01 (IE = version index). It is standard type with a program which has H'9B5A' as checksum. The Altistart is an ATS-46D32 with software version V1.1. Note : the checksum given in the response is not an exact value for V1.0 software, but is merely given to illustrate the response format.

72

ASCII serial link


Definition of the protocol
Dialog is in question / response form : The master asks a question and waits for the response within a given time (50 to 250 ms). If there is an error (parity or frame error, etc) the starter does not respond. If this occurs, check that all of the link parameters are correct, and check the cable. The messages are delimited by a start character : ? for a question, > for a response, and end characters : LF CR.

Question Start ? Question code See table on page 71 Data 1 Word or bit number Separator (*) 1 or 2 characters <SP> or @ Data 2 (*) Value End either <LF> or <CR>

(*) write only Data 1 : Word or bit number : integer between 0 and + 65535. The = sign is optional as are zeroes to the left of the number. Example : 55 or +00055 Data 2 : Value of word or bit : - Word : integer between 0 and + 65535. The = sign is optional as are zeroes to the left of the number. Example : 55 or +00055 -2345 or -02345 - Bit : 0 or 1. Response Start > Response code See table on page 71 Data 3(**) Value End <LF> <CR> E N G L I S H

(**) read only Data 1 : - Word : 6 characters, fixed format Examples : +00034 - Bit : 0 or 1.

73

ASCII serial link


Table of requests Question code Read bit Write bit Read word Write word Mirror Read 10 words A B C D M E Response code Positive Negative A Y C Y M E N N N N N N

If the response is negative : - Bit or word number does not exist. - Question code does not exist. - Incorrect question format (but with first character = ?). - Write while the starter is not in LINE mode. - Change of operating mode while the motor is not stopped. - Change of operating mode which does not correspond to the chart. Request E enables 10 words in succession to be read or written. E N G L I S H Communication test, mirror The mirror request returns the character string sent and can be used for the communication test. Question : Response : Read bit Bit to inhibit the communication check : Read bit B4 Question : Response : Response : Write bit Change to LINE mode : write value 1 in bit B2. Question : Response : Read word Value of logic output LO1 : read word W4023. Question : Response : Write word Maximum torque reference at 100 % Tn : write word W4036. Question : Response : ?D4036<SP>100<LF><CR> >Y<LF><CR> ?C4023<LF><CR> >C+00100<LF><CR> (Value LO1 = 100%) ?B2<SP>1<LF><CR> >Y<LF><CR> ?A4<LF><CR> or ?A+00004<LF><CR> >A0<LF><CR> if bit = 0 (check active) >A1<LF><CR> if bit = 1 (check inactive) ?M12345<LF><CR> >M12345<LF><CR>

74

Diagnostics
Fault
For the meaning of the codes, refer to the pages on the signalling words.

Additional diagnostics
Check the state of the 2 indicator lamps on the front panel of the option : COM : indicator lamp ; OK : green indicator lamp

COM OK

Communication interface

RS232/422/485

Lamp status : 0 = off 1 = on

1/2 = slow flashing (500 ms) 1/10 = fast flashing (100 ms)

OK lamp green 1 0 0

COM lamp red 0 0 1

Probable cause Normal operation, bus and starter present Switched off, powered off Bus communication fault

Corrective action OK Check the interface or the option Check the communication bus and the connections. Check the switches on the subscriber sockets Check communication configuration or the TER/- 5 V strap (absent in ASCII protocol/present in bus protocol) Configure communication Check the 6-pin connector between the option and the Altistart Check the 6-pin connector between the option and the Altistart

E N G L I S H

1/10 * (6x)

Character error

1/10 1/2

0 0

Communication option not configured Communication fault between the communication option and the Altistart (bus cable connected to option) Communication fault between the communication option and the Altistart (PC cable connected to option)

1/2

* This display flashes for 600 ms (3x on and 3x off) if an incorrect character has been received. This short flashing is repeated after a period of five seconds if an incorrect character is received. This only occurs when the communication option is set for communication fault (no message received for 10 s for bus communication or 1 s for ASCII protocol). If the option never changes to normal operation, this display indicates that the wiring is definitely correct (except perhaps for the TER/- 5 V strap) but that the configuration is not suitable (speed or format).
75

Index by function
Type : C : Command ; R : Adjustment ; F : Configuration ; S : Signalling
Description Return to factory settings Control loop Start Type C F C R R R R F, F, F, F, S S S S S S C C C C C F R R R R S Motor protection C F, R F, R F F S F, R F S S S S S S S S S F C Criterion According to position of switch on starter (normal/heavy) Select closed loop (torque control) open loop (voltage regulation) Run command Acceleration ramp slope Initial torque during acceleration Maximum torque during acceleration Limit current Adjustment of the time before starting Boost level Start time too long Stator loss compensation Motor heating Starter ready Steady state Short-circuited Current limited Acceleration phase Code CMD, INT CNF, CLP CMD, RUN ACC TQ0 TLI ILT TBS BST TLS LSC ETA, HEA ETA, RDY ETA, 8 ETA, 9 ETA, LIM ETA, B Address W4060, D W4035, 0 W4060, W4043 W4037 W4036 W4039 W4032 W4028 W4033 W4027 W4061, W4061, W4061, W4061, W4061, W4061, 5 Page 52 51 52 50 50 50 50 51 51 51 51 53 53 53 53 53 53 51 52 52 52 52 51 50 50 50 50 53 52 51 51 51 52 53 50 51 53 53 53 53 54 53 54 52 54 52 52

R R R R

4 1 8 9 D B

E N G L I S H

Stop

Motor locked when stopped Freewheel stop command Decelerated stop command Braked stop command Control motor deceleration in cascade Select stop type (freewheel, decelerated, braked) via LI_STOP (terminal block) - Decel. : deceleration ramp slope final torque during deceleration - Braked : braking current adjustment of braking time - Stop phase Reset thermal state Trip threshold (underload) Motor nominal current Motor thermal protection Protection inhibited Motor thermal state

VMA W4020 CMD, CAL W4060, 8 CMD, CAD W4060, 7 CMD, CAF W4060, 6 DMC W4060, 3 STY W4029 DEC EDC BRC EBA ETA, A W4044 W4038 W4041 W4042 W4061, A

CMD, RTH W4060, A ULL W4031 In W4026 THP W4034 INH W4060, B LTH W4064 OIL PHR PHE ETA, E ETA, F LCR COS LTR TFR TRE LPR CNF, SST CSC W4040 W4030 W4065 W4061, E W4061, F W4062 W4067 W4063 W4068 W4060, C W4072 W4035, 5 W4035, 6

Starter protection Mains supply

- Trip current threshold Default assignment of phase rotation Phase rotation state No mains supply Mains supply frequency Current Cos Torque Hours counter Reset of hour run counter Active motor power

Measurements

Special operation

- Test on low power motors - Motor in cascade

76

Index by function
Type : C : Command ; R : Adjustment ; F : Configuration ; S : Signalling
Description I/O management Type F F F F F, R F F S S C C C F F F F S S S C C C F S S S S S S S S S S S S S S S S S S S C R R S S S Criterion Assignment of logic input LI Assignment of logic output LO1 Assignment of logic output LO2 Assignment of analog output AO Analog output scale Analog output range Assignment of relay R1 State of I/O Value of analog output AO Assignment of commands on line Store adjustments in EEPROM Recall adjustments from EEPROM Product address Protocol Transmission speed Character format In local / line mode Stopped after request via terminal block Local control External fault command Starter reset command Inhibit line check Automatic reset Starter faulty Communication check inhibited Current threshold alarm Motor thermal alarm Internal fault Short-circuit fault Phase inversion fault Line communication fault External fault Start too long fault Mains failure and start request fault Phase fault Starter thermal fault Rotor locked in steady state fault Motor thermal overload fault Mains frequency incoherent fault Underload fault Alarm time before starting State of protection inhibition Code LI LO1 CNF, LO2 AO ASC CNF, AO1 CNF, R1 LIO SAO CMD, DLI CMD, MRE CMD, RRE ADR PRO SPD FOR ETA, LOC ETA, 3 ETA, FLO CMD, EFL CMD, RST CMD, NTO CNF, ARS ETA, FAI ETA, NTO ETA, 7 ETA, OVL DFT, INF DFT, OCF DFT, PIF DFT, SLF DFT, ETF DFT, STF DFT, USF DFT, PHF DFT, OHF DFT, LRF DFT, OLF DFT, FRF DFT, ULF Address W4022 W4023 W4035 W4024 W4025 W4035, 4 W4035, 2 W4066 W4070 W4060, W4060, W4060, W2290 W2291 W2292 W2293 W4061, W4061, W4061, W4060, W4060, W4060, W4035, W4061, W4061 W4061, W4061, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4071, W4071, 1 E F Page 51 51 51 51 51 51 51 54 54 52 52 52 70 70 70 70 53 53 53 52 52 52 51 53 53 53 53 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 52 50 50 54 54 54

Communication and terminal block management

0 3 5 2 0 4 1 2 7 C 1 2 3 5 6 7 8 9 A B C D F 0 1

Fault and alarm management

E N G L I S H

Motor prehzating

- Motor preheat command - Adjustment of preheating current time - Time before preheating - Fault order - Fault register repetition - Time counter repetition

CMD, DCM W4060, 9 IPR W4045 TPR W4046 PTR DFT W4090 W4091 W4092

Fault history

77

Diese technische Beschreibung wurde mit groer Sorgfalt erstellt. Schneider Electric SA kann jedoch nicht fr die Richtigkeit der darin enthaltenen Informationen garantieren und bernimmt keine Verantwortung, weder fr eine fehlerhafte Darstellung, noch fr eventuell auftretende Schden, die aus der Anwendung dieser Dokumentation resultieren sollten. Die in dieser Dokumentation beschriebenen Hardware- und Softwareprodukte sowie Dienstleistungen unterliegen einer stndigen Weiterentwicklung bezglich ihrer Prsentation, ihrer Funktionsweise und ihrer Verwendung. Ihre Beschreibung hat in keinem Fall einen verbindlichen und vertragsmigen Charakter. D E U T S C H

78

Inhaltsverzeichnis
Allgemeine Beschreibung Einbau des Kommunikationsmoduls Anschlu an den Multipoint-Bus Kommunikationsprinzip Variablen des Altistart 46 UNI-TELWAY-Auftrge Protokoll MODBUS / JBUS Serielle Verbindung ber WINDOWS
TM

80 81 8284 8587 8892 9395 96106 Terminal 107110 111, 112 113 114, 115

Serielle Verbindung ber ASCII-Protokoll Diagnose Kodierung der Funktionen

D E U T S C H

WINDOWSTM ist ein eingetragenes Warenzeichen der Microsoft Corporation.

79

Allgemeine Beschreibung
Das Kommunikationsmodul VW3-G46301 (im weiteren auch Option C1 genannt) ist fr den Einsatz mit den Sanftanlassern Altistart 46 bestimmt. Es ermglicht den Anschlu dieser Gerte der Leistungselektronik an einen Multipoint-Bus und dadurch ihre die Integration in moderne Automatisierungsstrukturen. ber das Kommunikationsmodul sind alle Funktionen des ATS-46 zugnglich: Konfiguration des Informationsaustausches, Konfiguration der Funktionen, Fernladen der Einstellparameter, Regel- und Steuerfunktionen, berwachung und Fehlerdiagnose.

Die Option VW3-G46301 besteht aus einem Adaptermodul RS-485 und einem 3 m langen Verbindungskabel mit einem 9poligen D-SUB-Steckverbinder. Achtung: Fr den Anschlu des Kommunikationsmoduls an einen PC (Kommunikationsprogramm WINDOWS Terminal oder PC-Software des ATS-46) ist fr einige Konfigurationen der Einsatz eines RS-232-Verbindungskabels (Bestellnummer VY1-G461510) erforderlich. Das Kommunikationsmodul untersttzt folgende Protokolle: UNI-TELWAY, MODBUS RTU/JBUS, MODBUS ASCII, ASCII fr PC (spezielles Telemecanique-Protokoll) D E U T S C H

80

Einbau des Kommunikationsmoduls

Die Montage ist im spannungsfreien Zustand des Gerts durchzufhren.

Es ist sicherzustellen, da der Altistart geerdet ist. Das Kommunikationsmodul VW3-G46301 gem obigem Foto im Altistart aufstecken. Das dem gewnschten Protokoll entsprechende Kabel anschlieen: - das mit dem Modul gelieferte RS 485-Kabel: fr die Protokolle UNI-TELWAY, MODBUS RTU/JBUS oder MODBUS ASCII. - das RS 232 C-Kabel (Option VY1-G461510): fr das ASCII-Protokoll (Telemecanique). Den Altistart gem einer der drei nachfolgenden Mglichkeiten verdrahten, s. Bedienungsanleitung der Basisgerte. - 3-Leiter-Ansteuerung, - NOT-AUS an LI STOP, - Brcke zwischen LI STOP und PL (24 V). Anmerkung: Fr eine Ansteuerung ber die Schnittstelle mu an Klemme LI STOP eine Spannung von 24 V anliegen. Den Informationsaustausch entsprechend den Angaben auf Seite 107109 konfigurieren. D E U T S C H

81

Anschlu an den Multipoint-Bus


Kontaktbelegung des D-SUB-Steckverbinders
Die Schnittstelle entspricht den bertragungsstandards RS 485 und RS 422 (RS 232 C kompatibel) und ist vom Sanftanlasser galvanisch getrennt. Der Anschlu erfolgt ber einen 9poligen D-SUB-Steckverbinder. ber den Eingang TER/ erfolgt die Wahl des Protokolls: ASCII-Protokoll fr PC (Eingang nicht angeschlossen) oder das konfigurierte Busprotokoll (Eingang an 5 V angeschlossen).
TER/ 5V 4,7 k TX Freigabe Senden & E 4,7 k 0V 5V 9 0V D (B) D (A) 8 1 4 7 3

+5V TER/ D(B) RD(B)

5 9 4 8 3 7 2 6 1

SG = RD(B) 0V Versorg. TX = D(A) RX = RD(A) RS232

5V 100 k RX & 100 k 0V 0V

RD (B) RD (A)

5 6 2

Ansicht externe Kontakte-seitig

Anschlu an den Bus gem Standard RS 485


D E U T S C H (mitgeliefertes Kabel mit 9-/15poligem D-SUB-Steckverbinder) Kontaktbelegung (Ansicht 9poliger Steckverbinder-seitig)

Anschluempfehlungen
0V 4

D(B) 7 D(A) 3

TER/ 8 5V 9

2adrig verdrilltes abgeschirmtes Kabel verwenden. Die Bezugspotentiale miteinander verbinden. Maximale Leitungslnge: 1000 m. Maximale Lnge einer Abzweigung: 20 m. Maximale Anzahl Stationen am Bus: 28. Verlegung der Kabel: Getrennte Verlegung von Buskabel und Leistungskabeln (Mindestabstand 30 cm). Falls erforderlich, Kreuzungen im rechten Winkel ausfhren. Die Abschirmung des Kabels an die Masse jedes Gertes anschlieen. An jedem Leitungsende des Busses eine Anpassung vorsehen.

120 1 nF

Zt-Leitungsanpassung an beiden Busenden empfohlen

82

Anschlu an den Multipoint-Bus


Der Anschlu der Gerte kann durch verschiedene Zubehrteile vereinfacht werden:

- Lieferbare Buskabel TSX-CSA100 : Lnge 100 m (328 ft), TSX-CSA200 : Lnge 200 m (656 ft), TSX-CSA500 : Lnge 500 m (1,640 ft),

- 2-Weg-Abzweigung TSX-SCA62: Dieser passive Anschluadapter mit einer gedruckten Schaltung ist mit Schraubklemmen versehen, die den Anschlu von 2 Gerten an den Bus ermglichen. Am Busende bernimmt die Abzweigung auerdem die Anpassung des Leitungsabschlusses.

Anschlubeispiel an einen UNI-TELWAY-Bus

TSX-SCM 21.6 TSX-CSAXXX

TSX-CSB015

TSX-SCA62

D E U T S C H

VW3-G46301

VW3-G46301

VW3-G46301

ALTISTART 46

ALTISTART 46

ALTISTART 46

83

Anschlu an den Multipoint-Bus


Busanschlu gem RS 422
Kontaktbelegung (Ansicht 9poliger D-SUB-Steckverbinder-seitig)

0V 4

0V 4

D(B) 7 D(A) 3

D(B) 7 D(A) 3

oder
RD(B) 6 RD(A) 2 TER/ 8 5V 9 RD(B) 6 RD(A) 2 TER/ 8 5V 9

Busanschlu gem RS 232 C


Kontaktbelegung (Ansicht 9poliger D-SUB-Steckverbinder-seitig) D E U T S C H
TX

1 4

7 6 3

Senden von Daten gemeinsamer Empfangen von Daten


(1)

SG RX

5 2

TER/ 5V

8 9

(1) Fr die Kommunikation mit einem PC gem dem ASCII-Protokoll mu die Steckbrcke TER / 5 V entfernt werden. Fr alle anderen Protokolle mu sie vorhanden sein. Der Anschlu an einen PC erfolgt ber das Verbindungskabel mit dem 9poligen D-SUB-Steckverbinder und den 9-/25poligen Adapter.

84

Kommunikationsprinzip
Anschlu des Altistart 46
Der Anschlu des Sanftanlassers kann entsprechend den im Katalog abgebildeten Schaltungsempfehlungen vorgenommen werden. Bei Einsatz des Kommunikationsmoduls kann das Strmelderelais des Altistart zur galvanischen Trennung (Trennrelais) eingesetzt werden (freie Kontakte an Klemmen R1A-R1B). Werden diese Kontakte im Steuerkreis des Hauptschtzes verwendet, kann der Leistungsteil dezentral spannungsfhrend oder spannungsfrei geschaltet werden.

Funktionszustnde des Altistart 46


Die nachstehende Darstellung zeigt die 4 stabilen Funktionszustnde des Sanftanlassers.
Strung mit automatischer Rckstellung Automatische Rckstellung STRUNG MIT AUTOMATISCHER RCKSTELLUNG

KEINE STRUNG (Normalbetrieb)

Strung/Rckstellung auf Anforderung Rckstellungsanforderung STRUNG MIT RCKSTELLUNG AUF ANFORDERUNG nichtrckstellbare Strung Nichtrckstellbarer Fehler Strung rckstellbar ber Fahrbefehl NICHTRCKSTELLBARE STRUNG

1 - KEINE STRUNG: Bei diesem Funktionszustand ist das Strmelderelais angezogen. 2 - STRUNG MIT AUTOMATISCHER RCKSTELLUNG: Dieser Funktionszustand liegt nach einer Strung vor, die wahrscheinlich ohne Eingriffnahme (Ausfall der Leistungsversorgung + RUN) oder durch wiederholte Versuche (Phasenfehler, Frequenz) beseitigt ist. Dieser Zustand wird nur erfat, wenn das Wort W4035,ARS auf 1 gesetzt wurde. Funktion des R1 als Strmelderelais: Bei diesem Strungstyp bleibt das Relais angezogen. Funktion des R1 als Trennrelais: Dieser Strungstyp verursacht das Abfallen des Relais. 3 - STRUNG MIT RCKSTELLUNG AUF ANFORDERUNG: Dieser Funktionszustand liegt nach einer Strung vor, die eine berprfung erfordert, wenn das Gert fr automatische Rckstellung (W4035,1 = 1) konfiguriert wurde. Oder nach einer rckstellbaren Strung, wenn das Gert fr manuelle Rckstellung (W4035,1 = 0) konfiguriert wurde. 4 - NICHTRCKSTELLBARE STRUNG: Dieser Funktionszustand liegt bei einer schweren Strung vor, die eine Eingriffnahme erforderlich macht (Kurzschlu, interner Fehler oder Drehfeldnderung). In diesem Fall mu die Steuerspannung unterbrochen und wieder zugeschaltet und erneut der Fahrbefehl erteilt werden.
85

D E U T S C H

Kommunikationsprinzip
Datenstruktur
Einstellung, Ansteuerung und berwachung des Altistart 46 erfolgen ber gertespezifische Daten oder Objekte. Es gibt zwei Arten von Objekten: BIT-OBJEKTE: Bezeichnung Bi (i = Nummer des Bits), fr die Ausfhrung logischer Befehle. Beispiel: B1 = Rckstellen des Altistart 46 (in Betriebsart LINE) WORT-OBJEKTE: (Lnge 16 Bits): Bezeichnung Wi (i = Nummer des Wortes), zum Speichern numerischer Werte (Ganzzahlen ohne Vorzeichen, von 0 bis 65535) oder zum Speichern von 16 unabhngigen logischen Zustnden, den sogenannten Registern (0 bis 9 und A bis F). Beispiel: W4028 = Boost-Spannung (numerischer Wert) W4061 = Statusregister des ATS-46 (16 Statusbits) Anmerkung: W4061,2 = Bit 2 von Register 4061.

WICHTIG :
Einige Steuerungen verwenden bei MODBUS-Kommunikation die Adresse 0 nicht. In diesem Fall sind alle in diesem technischen Heft angegebenen Adressen um den Wert 1 zu erhhen. Beispiel : Anstelle von W4028 ist W4029 zu verwenden.

Datenzugriff
Die nachfolgenden Tabellen enthalten die Parameter, die in Betriebsart LINE zugnglich sind. Die genaue Funktion sowie die Einstellungsmglichkeiten der einzelnen Parameter sind im Techn. Heft des Bedienmoduls (Ref. Nr. VD0C32Q302) beschrieben. Einige Daten sind sowohl im Lese- als auch im Schreibmodus zugnglich. Hierbei handelt es sich um alle Bit- und Wortobjekte, die den Einstellparametern, Konfigurationen und Steuerbefehlen entsprechen. Diese Daten bestimmen den Betrieb des Sanftanlassers. Die vom Altistart im Betrieb ermittelten Daten sind nur im Lesemodus zugnglich: Signalisierungen, Fehlermeldungen, etc. Der Zugriff im Schreibmodus auf diese Daten wird abgelehnt.

D E U T S C H

Einheiten
Die Worte werden immer in ganzen numerischen Werten ohne Vorzeichen (0 bis 65535) angegeben. Die Einheit ist jeweils festgelegt. Beispiel: W4037 = Losbrechmoment in % von MN (z. B.: 50 = 50 % MN) W4033 = Hochlaufberwachung (s)

Einstellbereiche
Fr jeden Parameter wird der fr den Altistart zulssige Einstellbereich angegeben. Wird der Wert 0 eingesetzt, ist die Funktion ausgeschaltet. Beispiel: W4036 = 0 = keine Begrenzung des maximalen Drehmoments, Einstellbereich von 10 bis 200 (in % von MN).

Werte bei der Inbetriebnahme


Nach dem Unterspannungssetzen wird der ATS-46 immer mit der in seinem EEPROM-Speicher enthaltenen Konfiguration und Einstellungen initialisiert (in Betriebsart LINE: Speichern der Einstellungen mit Wort W4060,E oder Rckkehr zur Werkseinstellung mit Wort W4060,D). Nach dem Einschalten befindet sich der ATS-46 standardmig in Betriebsart LOCAL (Ansteuerung ber die Klemmenleiste). Fr die Ansteuerung des Sanftanlassers ber den Multipoint-Bus mssen die Steuerbefehle der Betriebsart LINE zugeordnet werden: Schreiben von Wort W4060 durch Setzen von Bit 1 = 1.

86

Kommunikationsprinzip
Verwaltung der Betriebsarten LOCAL / LINE
Der ATS-46 kann in zwei Betriebsarten eingesetzt werden: LOCAL: 2- oder 3-Leiter-Ansteuerung ber die Klemmenleiste, LINE: Ansteuerung ber einen PC oder eine speicherprogrammierbare Steuerung (SPS). Die Wahl der Betriebsart wirkt sich nur beim Zugriff auf die Steuerungsparameter aus. Hinsichtlich der Konfigurations-, Einstellungs- und berwachungsparameter besteht kein Unterschied. Die bestimmenden Parameter Befehlsbit B2 (DLI): Bit von Befehlswort W4060,1 (DLI): Befehlsbit B4 (NTO): Bit von Befehlswort W4060,4 (NTO): Konfigurationswort W4022 (LI): Konfigurationswort W4029 (STY): Bit von Meldewort W4061,0 (LOC): Bit von Meldewort W4061,5 (FLO): Bit von Meldewort W4066,0 (LIO): Funktionsprinzip Betriebsart LINE: Die Befehle sind im Schreibmodus zugnglich, nur LI_STOP ist ber die Klemmenleiste Aktiv und vorrangig. ACHTUNG: Wird der der Betriebsart LOCAL zugeordnete Befehl LI aktiviert, knnen keine Befehle ber die serielle Verbindung geschrieben werden. Kontrolle der seriellen Verbindung: In Betriebsart LINE mssen regelmig Meldungen an den ATS-46 gesendet werden: bei den Protokollen UNI-TELWAY, MODBUS ASCII und MODBUS RTU mindestens eine Meldung alle 10 Sekunden; bei dem ASCII-Protokoll mindestens 1 Meldung pro Sekunde. Empfngt der ATS-46 in diesem Zeitraum keine Meldung, signalisiert er eine Strung der seriellen Verbindung (SLF). Die Kontrolle der seriellen Verbindung kann durch Setzen von Bit NTO auf 1 verhindert werden, so da nie ein Fehler SLF angezeigt wird. Betriebsart LOCAL: Es knnen keine Befehle ber die serielle Verbindung geschrieben werden. ber die Klemmenleiste sind die Befehle LI, LI_RUN und LI_STOP Aktiv. Durch Setzen von Bit DLI (B2 oder W4060,1) auf 1 ist der Wechsel in Betriebsart LINE mglich. Zuordnung der Befehle zu LINE/LOCAL Idem Keine Kontrolle der seriell. Verbind. (Fehler SLF) Idem. Zuordnung von LI zur Betriebsart LOCAL Wahl der Auslaufart ber LI_STOP Betriebsart LOCAL = 1, LINE = 0 Ansteuerung LOCAL = 1, nicht LOCAL = 0 Status von LI (0 = niedrig, 1 = hoch).

D E U T S C H

Typischer Betriebsfall Bei Anforderung oder Deaktivierung der lokalen Ansteuerung erfolgt ein Auslauf gem STY: Bei 2-Leiter-Ansteuerung: ATS-46 in Betriebsart LINE und LI_RUN = 1: Eine Anforderung der lokalen Ansteuerung fhrt zu einem Auslauf entsprechend der Konfiguration von STY. Der Wiederanlauf erfolgt sofort ber LI_RUN. Bei 3- Leiter-Steuerung: Idem. Der Wiederanlauf erfolgt jedoch erst nach dem Loslassen von LI_STOP und der Befehlsgabe von LI_RUN.

87

Variablen des Altistart 46


Befehlsbits (Lesen und Schreiben)
Bit B0 B1 Name RST DLI Beschreibung Rckstellen des ATS-46 Zuordnung der Betriebsart ber das Kommunikationsmodul Externe Strung Reserve Keine Kontrolle der seriellen Verbindung Fahrbefehl Auslauf gebremst Auslauf rampengefhrt Freier Auslauf Reserve Der ATS-46 meldet nicht Fehler SLF, wenn am Kommunikationsmodul die Strung NET vorliegt (= W4060,4) 0 - Inaktiv; 1 - Aktiv 0 - Inaktiv; 1 - Aktiv 0 - Inaktiv; 1 - Aktiv 0 - Inaktiv; 1 - Aktiv (= W4060,5) (= W4060,6) (= W4060,7) (= W4060,8) Funktion Quittiert eine rckstellbare Strung; das Strmelderelais zieht an. (= W4060,0) LINE = 1, LOCAL = 0 Der ATS-46 kann nur ber die serielle Verbindung (Bus oder PC) der Klemmenleiste gesteuert werden. (= W4060,1) Der ATS-46 meldet Fehler EtF (= W4060,2)

B2 B3 B4

EXT NTO

B5 B6 B7 B8 B9

RUN CAF CAD CAL

Einstellworte (Lesen und Schreiben)


Adresse D E U T S C H W4036 W4037 W4038 W4039 W4040 W4041 W4042 W4043 W4044 W4045 W4046 W4047 Name Bereich TLI TQ0 EDC ILT OIL BRC EBA ACC DEC IPR TPR GKI 0*, 10-200 0-100 0-100 Einheit Beschreibung % MN % MN % MN Begrenzung des maximalen Drehmoments beim Hochlauf Losbrechmoment beim Hochlauf Schwellwert, Freier Auslauf Mgliche Werte 0 = off

150-700 % Motor-Begrenzungsstrom u. <5.ICL Ie-Motor 0*, 50-300 0-100 20-100 1-60 1-60 0-100 0-99 20-50 % berstromberwachung Ie-Motor % s s % Ie ATS min _ Hhe des Bremsstrke Einstellzeit fr GS-Bremsung Hochlauf-Drehmomentrampe Auslauf-Drehmomentrampe Einstellung des Stroms der Stillstandsheizung (1) Zeit bis Aktivierung der Stillstandsheizung Verstrkung Auslauframpe 0 = off

(1) Der vom Motorhersteller empfohlene Strom ist nicht zu berschreiten.


88

Variablen des Altistart 46


Konfigurationsworte (Lesen und Schreiben)
Adresse W4018-4019 W4020 W4021 W4022 Name VMA Bereich Einheit Beschreibung Reserve Verriegelung des Motors im Stillstand Reserve Belegung von Logikeingang LI Mgliche Werte Ablesen nach 8000 H 0 - nicht verriegelt 1 - im Stillstand verriegelt Ablesen nach 8000 H 0 - Nicht belegt 1 - Freier Auslauf 2 - Externer Fehler 3 - Stillstandsheizung Mot. 4 - Ansteuerung LOCAL (0=LOCAL, 1=REMOTE) 5 - Kaskadierter Hoch-und Auslauf 6 - Unterdrckung aller Schutzfunktionen 7 - Reset Fehler Motorberlast 8 - Fehlerreset 0 - Nicht belegt 1 - Alarm Therm. berlast Mot. 2 - Motor in Betrieb 0 - Nicht belegt 1 - Motorstrom 2 - Lastzustand 3 - Thermischer Zustand 4 - Leistungsfactor cos 5 - Wirkleistung des Motors

LI

0-7

W4023

LO1

0-2

Belegung von Logikausgang LO1

W4024

AO

0-4

Belegung von Analogausgang AO

W4025 W4026 W4027 W4028 W4029

ASC IN LSC BST STY

50-500 0,51,3 Ie ATS 0-80 0*, 50-100 0-2

% 0,1 A % % Ue

Skalierung des Analogausgangs Motor-Bemessungsbetriebsstrom Kompensation der Statorverluste Boost-Spannung Auslaufart ber Logikeingang LI_STOP Drehfeldberwachung

W4030

PHR

0-2

0 - Freier Auslauf 1 - Rampengefhrt 2 - Gebremst 0 - Aus 1 - Direkte Drehrichtung 2 - Invertierte Drehrichtung

W4031 W4032 W4033 W4034

ULL TBS TLS THP

0*, 20-100 (0-999) 0*, 10-999 0-7

% MN s s

Unterlasterkennung des Motors Verzgerung vor dem Hochlauf Hochlaufzeit-berwachung Thermischer Motorschutz 0 1 2 3 4 5 6 7 Schutz abgeschaltet Unterklasse 2 Klasse 10A Klasse 10 Unterklasse 15 Klasse 20 Unterklasse 25 Klasse 30

D E U T S C H

W4035

CNF CLP ARS R1 LO2 AO1

Konfigurationsregister Bit 0: Drehmomentsteuerung Bit 1: Automatische Rckstellung Bit 2: Zuordnung von Relais R1 Bit 3: Belegung von Logikausgang LO2 Bit 4: Bereich des Analogausgangs 0 - Regelkreis ausgeschaltet 1 - Regelkreis eingeschaltet 0 - Manuelle Rckstellung 1 - Automat. Rckstellung 0 1 0 1 - Strmelderelais - Trennrelais - Nicht belegt - Alarm Stromschwellwert

0 - 0-20 mA

0*: Funktion ausgeschaltet (OFF)

89

Variablen des Altistart 46


Konfigurationsworte (Lesen und Schreiben)
Adresse W4035 Name SST CSc Bereich Einheit Beschreibung Bit 5: Test an Motor mit geringer Leistung Bit 6: Kaskadierter Hoch- und Auslauf Bit 7-F: Reserve Mgliche Wee 0 - Nicht belegt 1 - Testbetrieb 0 - Inaktiv 1 - Aktiv

Befehlsworte (Lesen und Schreiben)


Adresse W4060 Name CMD RST DLI EXT DMC NTO RUN Bereich Einheit Beschreibung Befehlsregister Bit 0: Rckstellen des ATS-46 Bit 1: Zuordnung der Betriebsart ber das Kommunikationsmodul Bit 2: Externer Fehler Bit 3: Kaskadierter Auslauf Bit 4: Keine Kontrolle der seriellen Verbindung (Fehler SLF) Bit 5: Fahrbefehl Bit 6: Auslauf gebremst Bit 7: Auslauf rampengefhrt Bit 8: Freier Auslauf Bit 9: Stillstandsheizung des Motors Bit A: Reset therm. Motorzustand Bit B: Unterdrckung aller Schutzfunktionen Bit C: Reset Betriebsstundenzhler Bit D: Rckkehr zur Werkseinstellung Bit E: Speichern der Einstellungen auf EEPROM Bit F: Aufruf der auf EEPROM gespeichteren Einstellungen 0 - Inaktiv 1 - Aktiv bei pos. Flanke (1) 0 - Inaktiv 1 - Aktiv bei pos. Flanke (1) 0 - Inaktiv 1 - Aktiv bei pos. Flanke (1) 0 - Inaktiv 1 - Aktiv (2) 0 - Inaktiv 1 - Aktiv 0 - Inaktiv 1 - Aktiv 0 - Inaktiv 1 - Aktiv 0 - Inaktiv 1 - Aktiv 0 - Inaktiv 1 - Aktiv 0 - Inaktiv 1 - Aktiv 0 - Inaktiv 1 - Aktiv 0 - LOCAL 1 - LINE 0 - Inaktiv 1 - Aktiv bei pos. Flanke (1) Mgliche Werte

D E U T S C H

CAF CAD CAL DCM RTH INH TRE INT MRE RRE

(1) Das bedeutet, da das Bit nach der Aktion auf 0 zurckgesetzt wird. (2) Das Bit wird zu 0 zurckgestzt, wenn innerhalb von 10 s keine steigende Flanke kommt. Ohne Zuordnung zur Betriebsart LOCAL werden die geschriebenen Befehle wie folgt bercksichtigt: Bei DLI = 1 werden die Bits RST, EFL, RUN, CAF, CAD, CAL, DCM, RTH bernommen, Die anderen Bits sind unabhngig von DLI (NTO, TRE, INT, MRE, RRE).

90

Variablen des Altistart 46


Meldeworte (nur Lesen)
Adresse W4061 Name ETA LOC RDY FAI Bereich Einheit Beschreibung Statusregister des ATS-46 Bit 0: Betriebsart LOCAL/Line Bit 1: Sanftanlasser bereit Bit 2: Strung des ATS-46 Bit 3: Auslauf ber Klemmenleiste HEA FLO NTO Bit 4: Stillstandsheizung Motor Bit 5: Ansteuerung LOCAL Bit 6: Keine Kontrolle der seriellen Verbindung Bit 7: Alarm Stromschwellwert SST Bit 8: Stationrer Betrieb Bit 9: berbrckungsschaltung Bit A: Auslauf Bit B: Hochlauf OVL LIM NLP Bit C: Alarm therm. Motorschutz Bit D: In Strombegrenzung Bit E: Netzausfall Bit F: Netzfrequenz W4062 W4063 W4064 W4065 LCR LTR LTH PHE 0999 1255 1250 02 A/10 % MN (1) % Motorstrom Motorlast Thermischer Motorzustand Drehfeldberwachung 0 - Aus 1 - Direkte Drehrichtung 2 - Invertierte Drehrichtung 0 - Niedrig 1 - Hoch 0 - Niedrig 1 - Hoch 0 - Niedrig 1 - Hoch 0 - Offen 1 - Geschlossen 0 - LOCAL 1 - LINE 0 - Falsch 1 - Wahr 0 - Normalbetrieb 1 - Strung 0 - Falsch 1 - Wahr 0 - Falsch 1 - Wahr 0 - Falsch 1 - Wahr 0 - Falsch 1 - Wahr 0 - Falsch 1 - Wahr 0 - Falsch 1 - Wahr 0 - Falsch 1 - Wahr 0 - Falsch 1 - Wahr 0 - Falsch 1 - Wahr 0 - Falsch 1 - Wahr 0 - Falsch 1 - Wahr 0 - Falsch 1 - Wahr 0 - 50 Hz 1 - 60 Hz Mgliche Werte

D E U T S C H

W4066

LIO

Status der Logikein-/ausgnge Bit 0: Logikeingang LI Bit 1: Logikausgang LO1 Bit 2: Logikausgang LO2 Bit 3: Relais R1

(1) MN: Nennmoment

91

Variablen des Altistart 46


Meldeworte (nur Lesen)
Adresse W4066 Name Bereich Einheit Beschreibung Bit 4: Relais R2 Bit 5: Vigitherme Bit 6: Logikeingang LI_RUN Bit 7: Logikeingang LI_STOP Bit 8: Wahl des Betriebs Bit 9-F: Reserve W4067 W4068 W4069 COS TFR DFT 1100 065535 % h Cos Betriebsstundenzhler Fehlerregister Bit 0: reserviert fr JC08 INF OCF PIF Bit 1: Interner Gertefehler Bit 2: berstrom Bit 3: Falsches Drehfeld Bit 4: Reserve SLF ETF STF USF PHF OHF LRF OLF FRF Bit 5: Interne Strung der seriellen Schnittstelle Bit 6: Externe Strung Bit 7: Hochlaufzeit zu lang Bit 8: Strung der Leistungsversorgung bei einem Fahrbefehl Bit 9: Phasenunterbrechnung Bit A: bertemperatur des ATS-46 Bit B: Defekt Rotor blockiert Bit C: berlastung des Motors Bit D: Frequenzfehler Bit E: Reserve ULF W4070 W4071 SAO Bit F: Unterlast Motor Wert von Analogausgang AO Bit 0: Alarm Verzgerung vor dem Hochlauf (TBS) Bit 1: Alarm Unterdrckung aller Schutzfunktionen (INH) W4072 W4090 W4091 W4092 LPR PTR DFT 0-255 % Wirkleistung des Motors Fehlerbefehl Wiederholung des Fehlerregisters Wiederholung des Betriebsstundenzhlers (W4068) 0 - Inaktiv 1 - Aktiv 0- Inaktiv 1 - Aktiv Mgliche Werte 0 - Offen 1 - Geschlossen 0 - bertemperatur 1 - Geschlossen 0 - Niedrig 1 - Hoch 0 - Niedrig 1 - Hoch 0 - Standard 1 - Schweranlauf

D E U T S C H

92

UNI-TELWAY-Auftrge
Liste der Auftrge
Die folgende Tabelle enthlt die vom ATS-46 akzeptierten Auftrge sowie die jeweiligen Anwendungsgrenzen. Detaillierte Informationen zur Kodierung der Auftrge sind im Handbuch UNI-TELWAY enthalten.
Auftrag Identifizierung Protokollversion Status Spiegel Lesen des Fehlerzhlers Reset der Zhler Lesen eines Bits Schreiben eines Bits Lesen eines Wortes Schreiben eines Wortes Lesen von Objekten Schreiben von Objekten Ereignisdaten * Fr den ATS-46 werden nur 27 Worte verwendet Code (Hexa) H0F H30' H31' HFA HA2' HA4' H00' H10' H04' H'14' H36' H37' Altistart 46 Ja Ja Ja Ja Ja Ja Ja Ja Ja Ja max. 63 Worte* max. 60 Worte Ja 2 Worte

Identifizierungs-Auftrag
Antwortcode Produkttyp Baureihentyp Produktversion ASCII-Zeichenfolge* = H'3F' = H'16' fr Altistart = H'46' fr Altistart 46 = H'XX' Softwareversion (z. B.: H'21' fr V2.1) = Typenbezeichnung des Gerts (z. B.: ATS-46D17N)

D E U T S C H

* Das erste Byte einer ASCII-Zeichenfolge entspricht immer der Lnge der Zeichenfolge.

Status-Auftrag
Antwortcode Aktueller Zustand = H'61' = H'XX' Bit 0: Interner Fehler Bit 1: Rckstellbarer Fehler Bit 2: Nichtrckstellbarer Fehler Bit 3: Nicht effektiv Bit 4: Nicht effektiv Bit 5: Nicht effektiv Bit 6: Altistart im Stillstand (RDY oder SLC oder Strung) Bit 7: Altistart imn Betriebsart LOCAL = H'C7' gibt die effektiven Bits des aktuellen Zustands an

Zustandsmaske

93

UNI-TELWAY-Auftrge
Auftrge Lesen und Schreiben von Objekten
Diese Auftrge ermglichen innerhalb der angegebenen Anwendungsgrenzen den Zugriff auf mehrere Worte. Die Kodierung dieser Auftrge kann wie folgt vorgenommen werden: Auftragscode (TXTi,C) Kategoriecode Segment Objekttyp Objektadresse usw = H36' (Lesen) oder H37' (Schreiben) = 0...7 = H68' (internes Wort) = H06' fr ein Byte (8 Bits) im Lesemodus oder H07' fr ein Wort (16 Bits) im Lese- und Schreibmodus = Hxxxx

Die reservierten oder nicht verwendeten Worte werden mit 0 gelesen; das Schreiben dieser Worte ist nicht effektiv. Die Antwort auf den Auftrag "Schreiben von Objekten" wird akzeptiert, wenn mindestens ein Wort geschrieben wird. Beispiel: Programmierung ber SPS-Steuerung TSX7 unter Verwendung des Textbausteins. LESEN der Worte W4022 bis W4025 des Altistart 46. Unter Verwendung eines Wort-Objekts = H07' Textbaustein beim Senden Textbaustein beim Empfang TxTi,C = H0736' (Kategorie + Auftrag) TxTi,V = H66' (Rckmeldung) TxTi,L = 6 TxTi,S = 9 (Empfang von 9 Bytes) + Sendetabelle + Empfangstabelle Segment internes Wort Worttyp D E U T S C H
W4023 (niederw.) H'07' 4023 4 H'68' W4024 (niederw.) W4025 (niederw.) W4026 (niederw.) H'07' W4023 (hherw.) W4024 (hherw.) W4025 (hherw.) W4026 (hherw.)

Lesen von 4 Worten Nr. des ersten Wortes Die in der Empfangstabelle empfangenen Daten sind um ein Byte verschoben. Vor der Verarbeitung der Daten ist dies durch das Anwenderprogramm auszugleichen (beispielsweise durch wiederholtes Verschieben).

94

UNI-TELWAY-Auftrge
Unter Verwendung eines Byte-Objekts = H'06' Textbaustein beim Senden Textbaustein beim Empfang TxTi,C = H'0736' (Kategorie + Auftrag) TxTi,V = H'66' (Rckmeldung) TxTi,L = 6 TxTi,S = 10 (Empfang von 10 Bytes) + Sendetabelle + Empfangstabelle Segment internes Wort Byte-Typ
W4022 (hherw.) W4023 H'06' 8045 9 H'68' W4024 W4025 W4026 H'06'

Lesen von 9 Bytes (hherwertiges Byte von W4022 + 8 Bytes von W4023 bis W4026) Nr. des ersten Bytes (das hherwertige Byte von W4022 hat die Adresse 2 x 4022 + 1 = 8045)

Bei dieser Programmierung erhlt man direkt die korrekte Anordnung der Worte in der Empfangstabelle.

Ereignisdaten
Der ATS-46 sendet auf Eigeninitiative Daten zum Master der UNI-TELWAY-Verbindung, ohne zuvor eine Aufforderung erhalten zu haben. Diese Daten werden ber den Auftrag "Nicht angeforderte Daten" gesendet und erfordern keine Antwort des Empfngers. Sie werden in den beiden folgenden Fllen gesendet: Bei Auftreten oder Verschwinden eines Fehlers (steigende oder fallende Flanke von Bit W4061,2 des Statusregisters). Bei Setzen des ATS-46 ber seinen Logikeingang auf Betriebsart LOCAL, sofern dieser Eingang zuvor mit dem Wort W4022 dieser Funktion zugeordnet wurde. Gre der Ereignisdaten: 2 Worte von 16 Bits, die in folgender Reihenfolge gesendet werden: Statusregister ETA (Wort W4061), Fehlerregister DFT (Wort W4069). Zur Beachtung: Die Verarbeitung der Ereignisdaten ber die TSX-Steuerung erfordert: die korrekte Konfiguration des Master-Moduls der UNI-TELWAY-Verbindung. die regelmige berwachung der Anzeigen, die eine Vernderung der Werte dieser Daten signalisieren. die Erfassung dieser Daten ber den Auftrag Lesen der Ereignisdaten. D E U T S C H

95

Protokoll MODBUS / JBUS


Allgemeine Beschreibung
Der Datenaustausch zwischen Informationsverarbeitungs-Systemen, speicherprogrammierbaren Steuerungen und anderen intelligenten Systemen mu in einer gemeinsamen Sprache erfolgen. Diese Sprache mu so einfach wie mglich und fr jeden angeschlossenen Teilnehmer verstndlich sein. Andererseits mu sie jedoch auch so strukturiert sein, da eine Kontrolle des Austausches gewhrleistet ist. Deshalb werden die Daten in Form von Telegrammen (Meldungen) ausgetauscht, die normalerweise folgende Syntax haben:
Kopfzeichen Adresse Auftrag Daten Kontrolle Endzeichen

Jedes Protokoll definiert Vorhandensein, Format und Inhalt der verschiedenen Variablen, die zusammen mit den Daten bertragen werden. Durch diese Strukturierung knnen folgende Parameter definiert werden: das Kopfzeichen der Meldung; die Lnge der Meldung; eventuell das System, an das die Daten adressiert sind; die geforderte Funktion; die eigentlichen Variablen; den Kontrollparameter; das Endzeichen, das die gesamte Meldung freigibt. Dieser Telegrammaufbau unterscheidet sich bei jedem Protokoll in Inhalt und Form. Die Funktionen von MODBUS und JBUS werden im vorliegenden Handbuch unter dem Begriff MODBUS zusammengefat.

MODBUS-Telegramme
Unter dem Protokoll MODBUS sind zwei bertragungsarten mglich, wobei innerhalb eines Systems nur jeweils eine verwendet werden kann. D E U T S C H RTU-Telegramme Dieser Telegrammaufbau enthlt weder Kopfzeichen noch Endzeichen. Die Syntax ist wie folgt:
Adresse Auftrag Daten CRC16

Die Daten werden binrkodiert bertragen. CRC16: Blockparittsprfzeichen (Cyclical Redundancy Check = zyklische Blockprfung). Das Ende des Telegramms wird erkannt, wenn eine bertragungspause von mindestens 3 Zeichen vorliegt. ASCII-Telegramme Diese Telegramme verwenden die vollstndige Syntax:
Kopfzeichen Adresse Auftrag Daten LRC Endzeichen: CR LF

Kopfzeichen = ":" (H3A'). Die Daten werden im ASCII-Code bertragen: jedes Byte ist in 2 Halbbytes unterteilt und jedes Halbbyte ist als ein ASCII-Zeichen kodiert (0 bis F). LRC: Lngsparittsprfzeichen (Longitudinal Redundancy Check = Longitudinalprfung). Endzeichen: "CR" "LF" (H0D' und H0A').

96

Protokoll MODBUS / JBUS


Kommunikationsprinzip
Das MODBUS-Protokoll ermglicht eine hierarchisch strukturierte Kommunikation (ein Master und mehrere Slaves). Mit diesem Protokoll kann eine Master-Station eine oder mehrere intelligente Slave-Stationen abfragen. Die einzelnen Stationen sind ber einen Multipoint-Bus angeschlossen. Es sind zwei Dialogarten mglich: Die Master-Station sendet eine Nachricht an eine Slave-Station und erwartet die Antwort. Die Master-Station sendet eine Nachricht an alle Slave-Stationen und erwartet keine Antwort (Rundsendebetrieb). Jede Slave-Station hat eine Nummer zwischen 1 und 31; die Nummer 0 ist dem Rundsendebetrieb vorbehalten. Master Der Master verwaltet den Datenaustausch und nur er allein kann die Initiative ergreifen. Bei einem bertragungsfehler wiederholt er die Frage. Wenn der Slave nicht innerhalb einer bestimmten Zeit (Time-Out) antwortet, erklrt ihn der Master als nicht anwesend. Es kann jeweils nur eine Nachricht auf die Leitung gegeben werden. Ein Slave darf nur senden, wenn er dazu aufgefordert wurde.

Slave j Slave i Slave k

D E U T S C H

Anmerkung Ein Dialog zwischen Slave und Slave kann nicht direkt, sondern nur ber den Master gefhrt werden. Dies ist im Applikationsprogramm des Masters entsprechend vorzusehen: Abfrage einer Slave-Station und Senden der erhaltenen Daten an eine andere Slave-Station.

97

Protokoll MODBUS / JBUS


Zugngliche Daten
Das Protokoll MODBUS ermglicht den Datenaustausch (Bits und Worte) zwischen dem Master und den Slave-Stationen und die Kontrolle dieses Austausches. Deshalb enthlt jede Slave-Station Bit-Bereiche, die vom Master gelesen oder geschrieben werden. Ein Eingangs-Objekt kann nur gelesen werden. Ein Ausgangs-Objekt kann gelesen oder geschrieben werden.
Slave i

Master
Sendetabelle

MODBUSAdressierung

Slave j Eingangsbits Ausgangsbits

Anwenderprogramm

Eingangsworte

D E U T S C H

Empfangstabelle

Ausgangsworte

Slave k

Datenaustausch
Der Master oder die berwachungseinheit knnen einen Austausch starten. Der Master sendet eine Nachricht an einen Slave mit folgendem Inhalt: Adresse der Slave-Station, vom Slave geforderte Funktion (Auftrag), Datenfeld (Variable je nach Auftrag), Kontrollzeichen. Der Master wartet die Antwort der Slave-Station ab, bevor er einen neuen Austausch startet, so da keine Komplikationen durch eine gegenseitige bertragung auftreten knnen (Halbduplexbetrieb).
98

Protokoll MODBUS / JBUS


Kontrolle und berwachung
Die Verwaltung des Datenaustausches zwischen zwei Einheiten ber eine serielle Asynchronschnittstelle schliet auch Ausnahme-Meldungen ein, die beim Auftreten von bertragungsfehlern gesendet werden. Empfngt eine Slave-Station eine unvollstndige Nachricht, teilt sie dies dem Master mit. Der Master entscheidet, ob er die Nachricht erneut sendet oder nicht.

Master

ATS 46

Einige vom Slave verwaltete Informationen sind dem Master zugnglich. Der Zugriff auf diese Daten erfolgt ber bestimmte Funktionscodes (Betriebsart Diagnose, Lesen des Ereigniszhlers).

MODBUS-Funktionen
Folgende Funktionen sind mit dem Kommunikationsprotokoll MODBUS mglich: die Hauptfunktionen, die den Datenaustausch gewhrleisten, die Zusatzfunktionen fr die Kontrolle und Diagnose des Austausches. Die nachfolgende Tabelle gibt die ber das Kommunikationsmodul des ATS-46 verwalteten Funktionen an, sowie die jeweiligen Anwendungsgrenzen. Die Funktionen Lesen und Schreiben beziehen sich jeweils auf die Aktion der Master-Station.
Code 01 02 03 04 05 06 08 11 16 Funktionen Lesen von N Ausgangsbits Lesen von N Eingangsbits Lesen von N Ausgangsworten Lesen von N Eingangsworten Schreiben eines Ausgangsbits Schreiben eines Ausgangswortes Diagnose (siehe weiter unten) Lesen des Ereigniszhlers Schreiben von N Ausgangsworten D Altistart 46 max. 1 max. 1 max. 29 max. 29 Ja Ja Ja Ja max. 28

D E U T S C H

D D

Die mit "D" gekennzeichneten Funktionen knnen bei Rundsendebetrieb verwendet werden. Die vom Master gesendete Nachricht mu in diesem Fall die Slave-Adresse 0 spezifizieren. Es erfolgt keine Rckmeldung der Slave-Stationen.

99

Protokoll MODBUS / JBUS


Beschreibung der Funktionen
Code 01: Lesen von N Ausgangsbits. Diese Funktion ermglicht das Lesen von Ausgangsbits, d.h. von Bits, die vom Master im Slave geschrieben oder gelesen werden knnen. Lesen von N Eingangsbits. Diese Funktion ermglicht das Lesen von Eingangsbits, d.h. von Bits, die vom Master nur gelesen werden knnen. Lesen von N Ausgangswrtern. Diese Funktion ermglicht das Lesen von Ausgangsworten, d.h. von Worten, die vom Master im Slave geschrieben oder gelesen werden knnen. Lesen von N Eingangswrtern. Diese Funktion ermglicht das Lesen von Eingangsworten, d.h. von Worten, die vom Master nur gelesen werden knnen. Schreiben eines Ausgangsbits. Mit dieser Funktion kann ein Ausgangsbit auf 0 oder 1 gesetzt werden (nur zugnglich im Schreibmodus). Schreiben eines Ausgangswortes. Diese Funktion ermglicht das Schreiben eines 16-Bit-Ausgangswortes (nur zugnglich im Schreibmodus).

Code 02:

Code 03:

Code 04:

Code 05:

Code 06:

Der Funktionscode 08 (Diagnose) wird immer durch einen Zusatzcode ergnzt: Code 08/00: D E U T S C H Echo. Diese Funktion fordert den adressierten Slave auf, die empfangene Nachricht unverkrzt an den Master zurckzusenden. Reinitialisierung des Kanals. Diese Funktion ermglicht die Reinitialisierung der Kommunikation mit einem Slave und insbesondere das Verlassen der Betriebsart LOM (nur Empfangen) durch Senden der Daten H'0000 oder H'FF00. ndern des Endzeichens (ASCII). ASCII-Telegramme schlieen mit dem Endzeichen LF (H0A = Zeilenvorschub). Diese Funktion ermglicht das ndern des Endzeichens. Wechsel in Betriebsart LOM. Mit dieser Funktion wird ein Slave in die Betriebsart LOM (nur Empfangen) gesetzt, d.h. der Slave verarbeitet die an ihn adressierten Nachrichten nicht und sendet auch keine Rckmeldung. Diese Betriebsart wird durch Reinitialisierung des Kanals wieder verlassen. Nullsetzen der Zhler (Reset). Diese Funktion bewirkt das Nullsetzen aller Zhler, die den Informationsaustausch mit einer Slave-Station berwachen. Anzahl der auf die Leitung gegebenen Meldungen ohne CRC- oder Prfsummenfehler. Mit dieser Funktion kann ein 16-Bit-Zhler (Inkrementierung von 0HFFFF) gelesen werden, der alle auf die Leitung gegebenen und vom Slave verarbeiteten Meldungen addiert.

Code 08/01:

Code 08/03:

Code 08/04:

Code 08/0A:

Code 08/0B:

100

Protokoll MODBUS / JBUS


Code 08/0C: Anzahl der empfangenen Meldungen mit Prfsummenfehler. Diese Funktion ermglicht das Lesen eines 16-Bit-Zhlers. Anzahl der Ausnahme-Meldungen. Lesen eines 16-Bit-Zhlers, der alle vom Slave an den Master aufgrund von bertragungsfehlern (Syntaxfehler) gesendeten Ausnahme-Meldungen addiert. Anzahl der an einen Slave adressierten Meldungen (ohne Rundsendebetrieb). Lesen eines 16-Bit-Zhlers, der alle (unabhngig vom Typ) an den Slave adressierten Meldungen addiert. Anzahl der im Rundsendebetrieb gesendeten Meldungen. Lesen eines 16-Bit-Zhlers, der alle (unabhngig vom Typ) vom Slave im Rundsendebetrieb empfangenen Meldungen addiert. Lesen der Anzahl der NAQ-Antworten. Der gelesene Wert ist immer gleich 0. Lesen der Anzahl der Nicht-Bereit-Antworten des Slave. Der gelesene Wert ist immer gleich 0. Lesen der Anzahl nicht verarbeiteter (fehlerhafter) Zeichen. Lesen des Ereigniszhlers. ein Status (immer gleich 0), ein Zhler, der bei Empfang jeder fehlerfreien Meldung (Format und Inhalt) inkremtiert, auer bei Ausnahme-Meldungen. Schreiben von N Ausgangsworten. Diese Funktion ermglicht es dem Master, Ausgangsworte (Worte, die geschrieben oder gelesen werden knnen) im Slave zu schreiben.

Code 08/0D:

Code 08/0E:

Code 08/0F:

Code 08/10: Code 08/11:

Code 08/12: Code 11:

Code 16:

D E U T S C H

101

Protokoll MODBUS / JBUS


Details der RTU-Telegramme
Lesen von N Bits: Funktion 1 oder 2 Frage
Nr. Slave 1 Byte 01 od. 02 1 Byte Nr. des 1. Bits hher nieder 2 Bytes Anzahl Bits hher nieder 2 Bytes CRC16 2 Bytes

Antwort
Nr. Slave 1 Byte 01 od. 02 1 Byte Anzahl gelesener Bytes 1 Byte Wert -----------Wert CRC16 2 Bytes

Beispiel: Lesen von Bit B4 der Slave-Station 2 Frage Antwort


02 02 02 01 01 01 0004 01 01 0001 00 01 BC38 51CC 900C

wenn B4 = 0 wenn B4 = 1

Bit B4 kann immer verwendet werden und auf 1 oder 0 gelesen werden.

D E U T S C H

Lesen von N Worten: Funktion 3 oder 4 Frage


Nr. Slave 1 Byte 03 od. 04 1 Byte Nr. des 1. Wortes Anzahl der Worte hher nieder hher nieder 2 Bytes 2 Bytes CRC16 2 Bytes

Antwort
Nr. Slave 1 Byte 03 od. 04 Anzahl gelesener Bytes 1 Byte Wert 1. Wort hher nieder 2 Bytes Wert des
------- letzten Worts

CRC16

1 Byte

hher nieder 2 Bytes 2 Bytes

Beispiel: Lesen der Worte W4023W4026 der Slave-Station 2 Frage Antwort


02 02 04 04 0FB7 08 0004 xxxx 42C8
----------------------

xxxx

CRC16

Wert von Wort W4023

Wert von Wort W4026

102

Protokoll MODBUS / JBUS


Schreiben eines Ausgangsbits: Funktion 5 Frage
Nr. Slave 1Byte 05 1 Byte Nr. des Bits Wert des Bits hher nieder 2 Bytes 2 Bytes CRC16 2 Bytes

Das Feld "Wert des Bits" kann nur zwei Werte enthalten, und zwar: Bit auf 0 = 0000 Bit auf 1 = FF00

Antwort
Nr. Slave 1 Byte 05 1 Byte Nr. des Bits Wert d. Bits hher nieder 2 Bytes 2 Bytes CRC16 2 Bytes

Beispiel: Schreiben des Wertes 1 in Bit B2 der Slave-Station 2 Frage und Antwort
02 05 0002 FF00 2DC9

Schreiben eines Ausgangswortes: Funktion 6 Frage


Nr. Slave 1 Byte 06 1 Byte Nr. des Wortes Wert d. Wortes CRC16 hher nieder hher nieder 2 Bytes 2 Bytes 2 Bytes

Antwort
Nr. Slave 1 Byte 06 1 Byte Nr. des Wortes hher nieder 2 Bytes Wert d. Wortes CRC16 hher nieder 2 Bytes 2 Bytes

D E U T S C H

Beispiel: Schreiben des Wertes H'000D' = 13 in Wort W4043 der Slave-Station 2 ( ACC = 13 s ) Frage und Antwort
02 06 0FCB 000D 3AD6

103

Protokoll MODBUS / JBUS


Diagnose: Funktion 8 Frage und Antwort
Nr. Slave 1 Byte Zusatzcode 00 01 03 04 0A 0B 0C 0D 0E 0F 10 11 12 08 1 Byte Zusatzcode 2 Bytes Daten 2 Bytes CRC16 2 Bytes Ausgefhrte Funktion Echo Reinitialisierung XX = neues Endzeichen Wechsel zu LOM Reset der Zhler XXYY = Wert des Zhlers XXYY = Wert des Zhlers XXYY = Wert des Zhlers XXYY = Wert des Zhlers XXYY = Wert des Zhlers immer = 0 immer = 0 XXYY = Wert des Zhlers

Daten der Frage XX YY 00 00 XX 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Daten der Antwort XX YY 00 00 XX 00 keine Antwort 00 00 XX YY XX YY XX YY XX YY XX YY 00 00 00 00 XX YY

Lesen des Ereigniszhlers: Funktion 11 ( H'0B' ) Frage


Nr. Slave 1 Byte 0B 1 Byte CRC16 2 Bytes

D E U T S C H

Antwort
Nr. Slave 1 Byte 0B 1 Byte 00 00 Wert des Zhlers hher nieder 2 Bytes CRC16 2 Bytes

2 Bytes

Schreiben von N Ausgangsworten: Funktion 16 (H'10' ) Frage


Nr. Slave 1 Byte 10 1 Byte Nr. 1. Wort Anzahl hher nieder Worte 2 Bytes 2 Bytes Anzahl Bytes 1 Byte Wert 1. Wort CRC16 ---hher nieder 2 Bytes 2 Bytes

Antwort
Nr. Slave 1 Byte 10 1 Byte Nr. 1. Wort hher nieder 2 Bytes Anzahl der Worte hher nieder 2 Bytes CRC16 2 Bytes

Beispiel: Schreiben der Werte 2 und 3 in die Worte W4043 und W4044 der Slave-Station 2 Frage Antwort
02 02 10 10 0FCB 0FCB 0002 0002 04 3311 0002 0003 1139

104

Protokoll MODBUS / JBUS


Ausnahme-Meldungen
Die Slave-Station sendet eine Ausnahme-Meldung, wenn sie den an sie adressierten Auftrag nicht ausfhren kann. Format einer Ausnahme-Meldung:
Nr. Slave 1 Byte Antwortcode 1 Byte Fehlercode 1 Byte CRC16 2 Bytes

Antwortcode: Fehlercode:

Funktionscode des Auftrags + H80 (das hchstwertige Bit wird auf 1 gesetzt). 1 = Die angeforderte Funktion wird vom Slave nicht erkannt. 2 = Die im Auftrag angegebenen Nummern (Adressen) der Bits und Worte sind im Slave nicht vorhanden. 3 = Die im Auftrag angegebenen Werte der Bits und Worte sind im Slave nicht zulssig. 4 = Der Slave hat mit der Ausfhrung des Auftrags begonnen, kann ihn jedoch nicht vollstndig verarbeiten.

Berechnung von CRC16


Die Blockparitt (CRC16) wird aus allen Bytes der Meldung wie folgt errechnet. CRC (16-Bit-Register) initialisieren auf HFFFF. Vom 1. Byte der Meldung bis zum letzten eingeben: CRC XOR <Byte> > CRC ENTER 8mal CRC jeweils um 1 Bit nach rechts verschieben Wenn das herausgeschobene Bit = 1, CRC XOR HA001> CRC eingeben Ende ENTER Ende ENTER Zuerst wird das niederwertige Byte des errechneten CRC-Werts, dann das hherwertige Byte gesendet. XOR = Exklusiv ODER. D E U T S C H

105

Protokoll MODBUS / JBUS


ASCII-Telegramme
Das ASCII-Telegramm unter dem Protokoll MODBUS ist wie folgt strukturiert: Nr. Slave Funktions- Daten LRC CR -----------------code hher nieder LF

Identische Informationen wie bei RTU-Telegrammen, jedoch unterschiedlich kodiert Kopf-/Endzeichen: ":" = H3A, CR = H0D, LF = H0A. Informationen: Das Datenfeld entspricht dem von RTU-Telegrammen. Die Daten sind jedoch in ASCII kodiert. Jedes Byte ist in 2 Halbbytes unterteilt, die mit dem entsprechenden ASCII-Wert kodiert sind. Beispiel: Das Byte mit der Slave-Adresse 06 wird durch die 2 ASCII-Zeichen "0" und "6" kodiert, d. h. durch H30' und H36'. LRC (Longitudinalprfung): Hexadezimal-Summe Modulo-256 des Telegramm-Inhalts (ohne Kopf-/Endzeichen) vor der Kodierung in ASCII, Zweierkomplement. Das erhaltende Byte wird dann wie oben beschrieben in 2 ASCII-Zeichen kodiert. Beispiel: Schreiben des Wertes 1 in Bit B2 der Slave-Station 2 Frage und Antwort Hexadezimal D E U T S C H

3A ASCII :

30 32 30 35

30303032

46463030

4638

0D

0A

02

05

0002

FF00

F8

CR

LF

Berechnung von LRC Summe der Bytes des Telegramms: H'02' + H'05' + H'00' + H'03' + H'FF' + H'00' = H'109' = 265 Summe Modulo-256: H'09' = 9 Zweierkomplement der Summe Modulo-256: H'100' - H'09' = 256 - 9 = 247 = H'F7'

106

Serielle Verbindung ber WINDOWS Terminal


Allgemeine Beschreibung
ber das Kommunikationsprogramm Terminal von WINDOWS ist die Kommunikation zwischen dem Optionsmodul C1 und einem PC mglich. ber Auftrge im ASCII-Protokoll (Telemecanique) ist der Zugriff auf alle Funktionen des ATS-46 mglich. Achtung: Fr den Anschlu des Moduls an den PC mu das PC-Kabel verwendet werden. Mit diesem Programm kann auch die Kommunikation ber den Bus konfiguriert werden (siehe folgende Seiten).

Definition der Verbindung ber WINDOWS Terminal


Verbindung vom Typ Master (PC) - Slave (ATS-46), asynchrone bertragung mit 9600 Baud. Format: 1 Startbit, 8 Datenbits, 1 Parittsbit ungerade, 1 Stoppbit. Anmerkung: Format und bertragungsrate knnen nicht verndert werden. Konfiguration: 1 - Aufruf von Terminal unter WINDOWS. 2 - Men Terminal: Einstellungen ; Terminalemulation : TTY (Allgemein)

3 - Men Terminal : Einstellungen ; Terminal-Einstellungen : [Terminal-Modus] [CR > CR/LF] Zeilenvorschub Eingabe Lokales Echo Ausgabe 4 - Men Terminal : Parameter ; Kommunikation :
i i i i i i

bertragungsrate: Datenbits: Stoppbits: Paritt: Transferkontrolle: Anschlu:

9600 8 1 ungerade keine COM1 (oder ggf. anderer)

D E U T S C H

Anmerkung: Wenn sich durch die Wahl der Paritt die Anzahl der Datenbits auf 7 ndert, ist die Anzahl der Stoppbits auf 2 einzustellen. Dadurch erhlt man wieder 8 Datenbits und die Anzahl der Stoppbits kann wieder auf 1 zurckgestellt werden. Es wird empfohlen, die Terminal-Konfiguration in einer Datei . trm zu speichern.

107

Serielle Verbindung ber WINDOWS Terminal


Konfiguration der Bus-Kommunikation ber WINDOWS Terminal
Die Konfigurationsparameter des Kommunikationsmoduls knnen mit allen Protokollen gelesen werden. Sie knnen jedoch nur im ASCII-Protokoll (Telemecanique) geschrieben werden. Die Auswahl des ASCII-Protokolls erfolgt durch Verwendung eines Kabels ohne Steckbrcke zwischen TER/ und 5 V. Wird TER/ mit 5 V verbunden ist, ist das konfigurierte Protokoll aktiv. Parameterwerte der Konfiguration
Adresse W2290 Parameter Produktadresse (ADR) Protokoll (PRO) Ausgewhltes Protokoll Zulssige Werte ASCII ADR 0 1 bis 31 W2291 UNI-TELWAY MODBUS RTU MODBUS ASCII W2292 bertragungsrate (SPD) 2 3 4 5 2 3 4 5 6 7 NO Wert PRO UTW Reserve RTU ASC SPD 300 600 1200 2400 4800 9600 19200 FOR 2 3 4 5 6 7 8 9 UTW MODBUS RTU MODBUS ASCII 2 2 bis 5 2 bis 9 8O1* 8E1 8N1 8N2 7O1 7E1 7O2 7E2 8O1 nicht vernderbar 2 7 300 Baud 600 Baud 1200 Baud 2400 Baud 4800 Baud 9600 Baud 19200 Baud 2 Standardeinstellung 0 Adresse nicht konfiguriert Adresse der Station Anmerkungen

D E U T S C H

8 W2293 Format (FOR)

* 8O1: (Anzahl der Bits) - ( O: ODD [ungerade] - E: EVEN [gerade]) - (Anzahl der Stoppbits) Beispiel 8O1: 8 Bits, ungerade, 1 Stoppbit

108

Serielle Verbindung ber WINDOWS Terminal


Konfiguration der Bus-Kommunikation ber WINDOWS Terminal
Format der ASCII-Meldungen fr den Dialog mit Terminal PC (Master) ATS46 (Slave) wobei: {Daten} {Ende} {CR LF} Frage: Antwort ?{Daten}{Ende} >{Daten}{CR LF}

Daten der Frage oder Antwort in ASCII-Zeichen ein oder zwei Endzeichen CR oder LF oder CR LF oder LF CR. (CR = Carriage Retum = H'OD'; LF = Line Feed = H'OA'). CR gefolgt von LF

Anmerkung: In den nachfolgenden Beispielen werden die Endzeichen nicht angegeben. Achtung: Das Optionsmodul C1 untersttzt nicht die Tasten DEL oder Entf. (Lschen des zuletzt eingegebenen Zeichens). Bei Verwendung dieser Tasten kann das Echo der Meldung auf dem Display zwar korrekt angezeigt, die Meldung jedoch dennoch abgelehnt werden. Wenn eine Frage oder ein angeforderter Wert nicht korrekt sind, ist die Antwort: >N Lesen der Konfiguration Frage: Antwort (bei Werkseinstellung): ?CONF >CONF:PRO:UTW ADR:NO SPD:9600 FOR:8O1

Die gelesene Konfiguration ist: Protokoll UNI-TELWAY, Adresse nicht konfiguriert, bertragungsrate 9600 Baud, Format 8 Bits, Paritt ungerade, 1 Stoppbit. Die Antwortparameter werden in der Spalte "ASCII" der Tabelle Seite 108 definiert. Modifizierung der Konfiguration Jede Vernderung der Konfiguration wird im Altistart-Speicher sichergestellt. Bei einer Vernderung der Konfiguration ist das Antwortformat mit dem der angezeigten Konfiguration identisch. Die Parameter werden in der Tabelle Seite 108 angegeben. Die mnemonischen Kodierungen werden in der Spalte "ASCII" und die je nach Protokoll mglichen Werte in der Spalte "Zulssige Werte" angegeben. Die Parameter knnen einzeln verndert werden. Beispiele von Fragen: Adresse 1 Protokoll UNI-TELWAY bertragungsrate 19200 Baud Format 8 Bits, Paritt ungerade, 1 Stoppbit D E U T S C H

?ADR = 1 ?PRO = UTW ?SPD = 19200 ?FOR = 8O1

Es ist auch mglich, mehrere Parameter mit einer Frage zu verndern. Beispiele von Fragen: Protokoll Modbus RTU, Adresse 1, ?CONF=PRO=RTU ADR=1 SPD=4800 FOR=8O1 bertragungsrate 4800 Baud, Format 8 Bits, ohne Paritt, 1 Stoppbit. Protokoll UNI-TELWAY, ?CONF=PRO=UTW SPD=19200 bertragungsrate 19200 Baud. (Das Format ist vorgegeben, die Adresse wird nicht verndert.) Die unvernderten Parameter behalten ihren bisherigen Wert, sofern dieser korrekt ist. Anmerkung: Die Fragen sind in Grobuchstaben einzugeben.
109

Serielle Verbindung ber WINDOWS Terminal

Modifizierung der Konfiguration durch bertragung einer Datei Die Konfiguration der Kommunikation kann ber einen Texteditor (z. B. Editor unter Windows) als Textdatei erstellt werden. Dadurch spart man das wiederholte Eingeben derselben Befehlszeile. Schreiben Sie mit Programm Editor die Konfiguration, die Sie bertragen mchten, z.B.: ?CONF=PRO=UTW ADR=1 SPD=9600). Die Datei mu mit CR oder LF abgeschlossen werden: die Taste ENTER am Ende der Konfigurationszeile bettigen. Danach die Datei speichern. Verwenden Sie im Programm Terminal im Men "bertragung" den Befehl "Textdatei senden". Whlen Sie die zuvor gespeicherte Datei, die sofort ber die serielle Schnittstelle bertragen wird. Die Antwort des Kommunikationsmoduls wird auf dem Bildschirm angezeigt.

Bedienerfhrung bei der Konfigurierung Erluterungen zu den verwendeten mnemonischen Kodierungen knnen ber eine Hilfedatei aufgerufen werden. Aufruf der Hilfedatei: Antwort: Hilfeanforderung zu einem Parameter: Antwort: D E U T S C H ?HELP ?HELP PRO ADR SPD FOR ?HELP PRO >HELP PRO: PRO=UTW oder RTU, ASC

Information Zur Identifizierung des Altistarts und des verwendeten Moduls kann folgende Frage eingegeben werden: Informationsanforderung: Antwortbeispiel: ?INFO >INFO:C1:V:1.0 IE01H TYPE:01H CS9B5AH ATS46D32: V1.1

In diesem Beispiel hat das Optionsmodul C1 (=VWG46301) die Softwareversion V1.0 IE01 (IE = Versionsindex). Es handelt sich um einen Standardtyp, dessen Programm die Prfsumme H'9B5A' hat. Der Altistart ist ein ATS-46D32 mit der Softwareversion V1.1. Anmerkung: Bei der in der Antwort genannten Prfsumme handelt es sich nicht dem genauen Wert fr die Software V1.0, sondern nur um ein Beispiel des Antwortformats.

110

Serielle Verbindung ber ASCII-Protokoll


Definition des Protokolls
Der Dialog erfolgt in Form von Frage / Antwort: Der Master stellt eine Frage und erwartet in einem bestimmten Zeitraum (50250 ms) die Antwort. Bei Auftreten eines Fehlers (Parittsfehler, Syntaxfehler) antwortet der ATS-46 nicht. In diesem Fall mssen alle Parameter der Verbindung sowie das Anschlukabel berprft werden. Die Meldungen beginnen mit einem Kopfzeichen: ? bei einer Frage, > bei einer Antwort, und werden mit einem Endzeichen LF oder CR abgeschlossen.

Frage Anfang ? Fragecode s. Tabelle Seite 109 Daten 1 Nr. des Worts oder Bits Trennzeichen (*) 1 od. 2 Zeichen <SP> oder @ Daten 2 (*) Wert Ende entw. <LF> oder <CR>

(*) nur im Schreibmodus Daten 1: Nummer des Wortes oder Bits: Ganzzahl zwischen 0 und + 65535. Das Vorzeichen = fakultativ, gleiches gilt fr fhrende Nullen. Beispiel: 55 oder +00055 Wert des Wortes oder Bits: - Wort: Ganzzahl zwischen 0 und + 65535. Das Vorzeichen = fakultativ, gleiches gilt fr fhrende Nullen. Beispiel: 55 oder +00055 -2345 oder -02345 - Bit: 0 oder 1.

Daten 2:

Antwort Anfang > Antwortcode s. Tabelle Seite 109 Daten 3(**) Wert Ende <LF> <CR>

D E U T S C H

(**) nur im Lesemodus Daten 3: - Wort: 6 Zeichen, festes Format Beispiel: +00034 - Bit: 0 oder 1.

111

Serielle Verbindung ber ASCII-Protokoll


Tabelle der Auftrge Fragecode positiv Lesen eines Bits Schreiben eines Bits Lesen eines Worts Schreiben eines Worts Spiegel Lesen von 10 Worten A B C D M E A Y C Y M E Antwortcode negativ N N N N N N

Mglichkeiten bei einer negativen Antwort: - Nummer des Bits oder Worts ist nicht vorhanden. - Fragecode ist nicht vorhanden. - Format der Frage unkorrekt (aber mit Kopfzeichen = ?). - Schreiben, obwohl der ATS-46 nicht im LINE-Modus ist. - Wechsel der Betriebsart, wenn der Motor nicht im Stillstand ist. - Wechsel der Betriebsart, der nicht dem Betriebsarten-Diagramm entspricht. ber den Auftrag E knnen 10 Worte in Folge gelesen oder geschrieben werden. berprfung der Kommunikation, Spiegel Durch den Auftrag "Spiegel" wird die gesendete Zeichenfolge zurckgesendet und kann zur berprfung der Kommunikation verwendet werden. Frage: Antwort: D E U T S C H ?M12345<LF><CR> >M12345<LF><CR>

Lesen eines Bits Bit Keine Kontrolle der seriellen Verbindung: Lesen von Bit B4 Frage: Antwort: Antwort: ?A4<LF><CR> oder ?A+00004<LF><CR> >A0<LF><CR> wenn Bit = 0 (Kontrolle aktiv) >A1<LF><CR> wenn Bit = 1 (Kontroll inaktiv)

Schreiben eines Bits Wechsel in den LINE-Modus: Schreiben des Wertes 1 in Bit B2. Frage: Antwort: ?B2<SP>1<LF><CR> >Y<LF><CR>

Lesen eines Worts Wert des Logik-Ausgangs LO1: Lesen von Wort W4023. Frage: Antwort: ?C4023<LF><CR> >C+00100<LF><CR> (Wert LO1 = 100%)

Schreiben eines Worts Begrenzung des max. Drehmoments beim Hochlauf: Schreiben von Wort W4036. Frage: Antwort: ?D4036<SP>100<LF><CR> >Y<LF><CR>

112

Diagnose
Strungscodes
Die Bedeutung der Codes wird im Kapitel Variablen des Altistart 46, Meldeworte, erlutert.

Ergnzende Diagnose
Den Zustand der beiden LEDs auf der Modulfrontseite berprfen: COM: rote LED; OK: grne LED

COM OK

Kommunikationsinterface

RS232/422/485

Zustand der LEDs: 0 = erloschen 1/2 = blinkt langsam (500 ms) 1 = leuchtet 1/10 = blinkt schnell (100 ms)

LED OK grn 1 0 0

LED COM rot 0 0 1

Mgliche Ursachen Normalbetrieb, Bus und ATS-46 sind vorhanden Auer Betrieb, spannungsfrei Strung der Kommunikation ber den Bus Zeichenfehler

Fehlerbeseitigung OK Interface oder Modul prfen Kommunikationsbus und Anschlu prfen. Wahlschalter der Abzweigdosen prfen Konfiguration der Kommunikation oder Steckbrcke TER/- 5 V prfen (offen bei ASCII-Protokoll / geschlossen bei Busprotokoll) Kommunikation konfigurieren 6poliger Steckverbinder zwischen Modul und Altistart berprfen 6poliger Steckverbinder zwischen Modul und Altistart berprfen

1/10 * (6x)

D E U T S C H

1/10 1/2

0 0

Modul C1 nicht konfiguriert Kommunikationsstrung zwischen Modul C1 und Altistart (Buskabel an Modul angeschlossen) Kommunikationsstrung zwischen Modul C1 und Altistart (PC-Kabel an Modul angeschlossen)

1/2

* Diese Anzeige besteht in einem Blinken von 600 ms Dauer (3x AN und 3x AUS), wenn ein fehlerhaftes Zeichen empfangen wurde. Dieses kurze Blinken wird nach einer Pause von 5 Sekunden wiederholt, wenn ein empfangenes Zeichen fehlerhaft ist. Es findet jedoch nur bei einer Kommunikationsstrung des Optionsmoduls C1 statt (keine Meldung empfangen seit 10 Sekunden bei Busprotokoll oder seit 1 Sekunde bei ASCII-Protokoll). Falls das Modul nicht in den Normalbetrieb wechselt, bedeutet diese Anzeige, da die Verdrahtung zwar korrekt (auer eventuell Steckbrcke TER/- 5 V), die Konfiguration jedoch falsch parametriert ist (bertragungsrate oder Format).
113

Codierung der Funktionen


Erluterung zu Typ: C = Befehl; R = Einstellung; F = Konfiguration; S = Signalisierung
Beschreibung Rckkehr zur Werkseinstellung Art der Regelung Hochlauf Typ C F C R R R R F, F, F, F, S S S S S S C C C C C F R R R R S Motorschutz C F, R F, R F F S F, R F S S S S S S S S S F C Beschreibung Je nach Stellung des Schalters am ATS-46 (Standard/Schweranlauf) Drehmomentsteuerung Regelkreis aus-/eingeschaltet Code CMD, INT CNF, CLP Adresse W4060, D W4035, 0 W4060, W4043 W4037 W4036 W4039 W4032 W4028 W4033 W4027 W4061, W4061, W4061, W4061, W4061, W4061, 5 Seite 90 89 90 88 88 88 88 89 89 89 89 91 91 91 91 91 91 89 90 90 90 90 89 88 88 88 88 91 90 89 89 89 90 91 88 89 91 91 91 91 92 91 92 90 92 90 90

R R R R

Fahrbefehl CMD, RUN Hochlauf-Drehmomentrampe ACC Losbrechmoment beim Hochlauf TQ0 Begrenz. d. max. Drehmoments beim Hochlauf TLI Motor-Begrenzungsstrom ILT Startverzgerung TBS Boost-Spannung BST Hochlaufzeit-berwachung TLS Kompensation der Statorverluste LSC Stillstandsheizung Motor ETA, HEA Sanftanlasser bereit ETA, RDY Stationrer Betrieb ETA, 8 berbrckungsschaltung ETA, 9 In Strombegrenzung ETA, LIM Hochlauf ETA, B

4 1 8 9 D B

Auslauf

D E U T S C H

Verriegelung des Motors im Stillstand Freier Auslauf Auslauf rampengefhrt Auslauf gebremst Kaskadierter Auslauf Auslaufart (freier Auslauf, rampengefhrt, gebremst) ber LI_STOP (Klemmenleiste) - Auslauf-Drehmomentrampe - Schwellwert, Freier Auslauf - Hhe des Bremsmoments - Einstellzeit fr GS-Bremsung - Auslauf Reset thermischer Motorzustand Unterlasterkennung des Motors Motor-Bemessungsbetriebsstrom Thermischer Motorschutz Unterdrckung aller Schufzfunktionen Thermischer Motorzustand

VMA W4020 CMD, CAL W4060, 8 CMD, CAD W4060, 7 CMD, CAF W4060, 6 DMC W4060, 3 STY W4029 DEC EDC BRC EBA ETA, A W4044 W4038 W4041 W4042 W4061, A

CMD, RTH W4060, A ULL W4031 In W4026 THP W4034 INH W4060, B LTH W4064 OIL PHR PHE ETA, E ETA, F LCR COS LTR TFR TRE LPR CNF, SST CSC W4040 W4030 W4065 W4061, E W4061, F W4062 W4067 W4063 W4068 W4060, C W4072 W4035, 5 W4035, 6

Altistart-Schutz Versorgungsnetz

- berstromberwachung Drehfeldberwachung Drehfeldberwachung Netzausfall Netzfrequenz Motorstrom Cos Motorlast Betriebsstundenzhler Reset Betriebsstundenzhler Wirkleistung des Motors

Messwerte

Sonderfunktionen

- Test an Motor mit geringer Leistung - Kaskadierter Hoch- und Auslauf

114

Codierung der Funktionen


Erluterung zu Typ: C = Befehl; R = Einstellung; F = Konfiguration; S = Signalisierung
Beschreibung Verwaltung der E/A Typ F F F F F, R F F S S C C C F F F F S S S C C C F S S S S S S S S S S S S S S S S S S S C R R S S S Beschreibung Belegung von Logikeingang LI Belegung von Logikausgang LO1 Belegung von Logikausgang LO2 Belegung von Analogausgang AO Skalierung des Analogausgangs Bereich des Analogausgangs Zuordnung von Relais R1 Status der Logikein-/ausgnge Wert von Analogausgang AO Zuordnung der Betriebsart ber Option C1 Speichern der Einstellungen auf EEPROM Aufruf der auf EEPROM gespeicherten Einstell. Produktadresse Protokoll bertragungsrate Zeichenformat Betriebsart LOCAL / LINE Auslauf ber Klemmenleiste Ansteuerung LOCAL Externer Fehler Rckstellen des ATS-46 Keine Kontrolle der seriellen Verbindung Automatische Rckstellung Strung des ATS-46 Keine Kontrolle der seriellen Verbindung Alarm Stromschwellwert Alarm thermischer Motorschutz Interner Gertefehler berstrom Falsches Drehfeld Interne Strung der seriellen Schnittstelle Externe Strung Hochlaufzeit zu lang Str. der Leistungsversorgung bei Fahrbefehl Phasenunterbrechung bertemperatur des ATS-46 Defekt Rotor blockiert berlastung des Motors Frequenzfehler Unterlast Motor Alarm Verzgerung vor dem Hochlauf Alarm Unterdrckung aller Schutzfunktionen Code LI LO1 CNF, LO2 AO ASC CNF, AO1 CNF, R1 LIO SAO CMD, DLI CMD, MRE CMD, RRE ADR PRO SPD FOR ETA, LOC ETA, 3 ETA, FLO CMD, EFL CMD, RST CMD, NTO CNF, ARS ETA, FAI ETA, NTO ETA, 7 ETA, OVL DFT, INF DFT, OCF DFT, PIF DFT, SLF DFT, ETF DFT, STF DFT, USF DFT, PHF DFT, OHF DFT, LRF DFT, OLF DFT, FRF DFT, ULF Adresse W4022 W4023 W4035 W4024 W4025 W4035, 4 W4035, 2 W4066 W4070 W4060, W4060, W4060, W2290 W2291 W2292 W2293 W4061, W4061, W4061, W4060, W4060, W4060, W4035, W4061, W4061 W4061, W4061, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4071, W4071, 1 E F Seite 89 89 89 89 89 89 89 92 92 90 90 90 108 108 108 108 91 91 91 90 90 90 89 91 91 91 91 92 92 92 92 92 92 92 92 92 92 92 92 92 92 92 90 88 88 92 92 92

Verwaltung der Kommunikation und der Klemmenleiste

0 3 5 2 0 4 1 2 7 C 1 2 3 5 6 7 8 9 A B C D F 0 1

Verwaltung der Fehler und Alarmmeldungen

D E U T S C H

Motor Stillstandsheizung Fehler - Historik

- Stillstandsheizung des Motors - Einstellung des Stroms der Stillstandsheizung - Zelt bis Aktivierung der Stillstandsheizung - Fehlerbefehl - Wiederholung des Fehlerregisters - Wiederholung des Betriebsstundenzhlers

CMD, DCM W4060, 9 IPR W4045 TPR W4046 PTR DFT W4090 W4091 W4092

115

A pesar de todo el cuidado puesto en la elaboracin de este documento, Schenider Electric SA no se responsabiliza de los errores eventuales que pueda contener ni de los daos que puedan resultar de su utilizacin o aplicacin. Los productos de hardware, software y servicios presentados en este documento son en todo momento susceptibles de sufrir evoluciones en sus caractersticas de presentacin, funcionamiento o utilizacin. Su descripcin no podr en ningn caso tener un carcter contractual.

E S P A O L

116

Indice
Presentacin Instalacin de la opcin comunicacin Conexin sobre bus multipunto Principios de la comunicacin Variables del Altistart 46 Requerimientos UNI-TELWAY Protocolo MODBUS / JBUS Enlace serie Terminal Windows Enlace serie ASCII Diagnstico Indice por funcionalidades
TM

118 119 120 a 122 123 a 125 126 a 130 131 a 133 134 a 144 bajo PC 145 a 148 149 y 150 151 152 y 153

E S P A O L

WindowsTM es una marca de Microsoft Corporation

117

Presentacin
La opcin de comunicacin de referencia VW3-G46301 (tambin llamada C1, en este documento) est prevista para ser utilizada con los Altistart 46. Dicha opcin est concebida para integrar los Altistart 46 en las arquitecturas modernas de automatismo permitiendo conectarlas sobre un bus industrial multipunto. El intercambio de datos permiten explotar todas las funciones del Altistart 46: configuracin de la comunicacin, configuracin de las funciones, carga de los parmetros de ajuste, mando-control, vigilancia-diagnstico. La opcin de comunicacin VW3-G46301 se entrega con un cable RS 485 de conexin de 3 m de longitud dotado de un conector SUB-D de 9 contactos. Atencin: Para conectar sta opcin de comunicacin a un PC (Terminal Software bajo WINDOWS o Software PC del Altistart 46), es necesario equiparse, para varias configuraciones, con un kit de conexin RS 232 PC, con referencia VY1-G461510. Esta opcin gestiona los protocolos siguientes: UNI-TELWAY, MODBUS RTU/JBUS, MODBUS ASCII, ASCII para PC (especfico de Telemecanique)

E S P A O L

118

Instalacin de la opcin comunicacin

Antes de toda intervencin sobre el arrancador, cortar la alimentacin.

Verificar que el arrancador est conectado a tierra. Montar la opcin de comunicacin VW3-G46301 en el arrancador, tal como se indica en la foto de arriba. Conectar el cable siguiendo el protocolo elegido: - el cable suministrado con la opcin para una conexin RS 485 con uno de los protocolos UNI-TELWAY, MODBUS RTU/JBUS o MODBUS ASCII, - el kit de cable de PC (VY1-G461510) para una conexin en RS 232 C con el protocolo para consola ASCII (protocolo especfico de Telemecanique). Cablear el Altistart segn una de tres posibilidades siguientes: - mando a 3 hilos, - parada de urgencia ante LI STOP, - puente entre LI STOP y PL (24 V). N.B. : Para controlar desde la lnea, applicar 24V al terminal LI STOP. Configurar la comunicacin segn se describe en las pginas 145 a 147.

E S P A O L

119

Conexin sobre bus multipunto


Acoplamiento del conector SUB-D
El interface de transmisin segn la norma RS 485 y la norma RS 422 (compatible RS 232 C) est aislado galvnicamente del arrancador. Dicho interface est disponible sobre el conector SUB-D hembra de 9 contactos. La entrada TER/ permite seleccionar el protocolo ASCII para PC cuando no est conectada o el protocolo bus configurado cuando est conectada a 5 V.
TER/ 5V 4,7 k TX validacin emisin & E 4,7 k 0V 5V 9 0V D (B) D (A) 8 1 4 7 3

+5V TER/ D(B) RD(B)

5 9 4 8 3 7 2 6 1

SG = RD(B) 0V Alim. TX = D(A) RX = RD(A) RS232

5V 100 k RX & 100 k 0V 0V

RD (B) RD (A)

5 6 2

Vista del lado contactos exteriores

Conexin sobre bus segn la norma RS 485


(cable con SUB-D de 9-15 puntos suministrado con la opcin) Contactos a utilizar (vista del lado del conector SUB-D de 9 contactos de la opcin)

0V 4

Recomendaciones utilizar un cable blindado con 2 pares de conductores trenzados, unir los potenciales de referencia entre s, longitud mxima de la lnea: 1000 metros, longitud mxima de una derivacin: 20 metros, no conectar ms de 28 estaciones sobre un bus, tendido del cable: alejar el bus de los cables de alimentacin (30 cm mnimo), efectuar los cruces en ngulo recto si es necesario, conectar la pantalla del cable a la masa de cada equipo, adaptar la lnea a sus dos extremos.

E S P A O L

D(B) 7 D(A) 3

TER/ 8 5V 9

120 1 nF

Terminacin de lnea Zt recomendada en los 2 extremos

120

Conexin sobre bus multipunto


Diversos accesorios estn disponibles con el objeto de facilitar la conexin.

Cables para bus TSX-CSA100 : longitud 100 m(328 ft), TSX-CSA200 : longitud 200 m(656 ft), TSX-CSA500 : longitud 500 m(1,640 ft).

Toma de abonados TSX-SCA62 Este cajetn pasivo comporta un circuito impreso equipado con borneros atornillables y permite la conexin de 2 equipos al bus. Incluye la adaptacin de fin de lnea, cuando la toma est situada en un extremo.

Ejemplo de conexin sobre bus UNI-TELWAY

TSX-SCM 21.6 TSX-CSAXXX

TSX-CSB015

TSX-SCA62

VW3-G46301

VW3-G46301

VW3-G46301

E S P A O L

ALTISTART 46

ALTISTART 46

ALTISTART 46

121

Conexin sobre bus multipunto


Conexin sobre bus segn el estandard RS 422
Contactos a utilizar (vista del lado del conector SUB-D de 9 contactos de la opcin)

0V 4

0V 4

D(B) 7 D(A) 3

D(B) 7 D(A) 3

o
RD(B) 6 RD(A) 2 TER/ 8 5V 9 RD(B) 6 RD(A) 2 TER/ 8 5V 9

Conexin en RS 232 C
Contactos a utilizar (vista del lado del conector SUB-D de 9 contactos de la opcin)

1 4

7 6 TX 3

E S P A O L

emisin de datos comn recepcin de datos


(1)

SG RX

5 2

TER/ 5V

8 9

(1) El puente TER / 5 V debe estar ausente para comunicarse segn el protocolo ASCII con un PC, y debe estar presente para comunicarse con los otros protocolos. El cable de interconexin con el SUB-D de 9 contactos y el adaptador de 9-25 contactos permiten la conexin al PC. 122

Principio de la comunicacin
Conexin del arrancador
La conexin del Altistart 46 puede efectuarse segn los esquemas que figuran en el catlogo. La funcin comunicacin ofrece la posibilidad de utilizar el rel de seguridad del arrancador como rel de aislamiento (contactos disponibles sobre las bornas R1A-R1B). La utilizacin de estos contactos en el circuito de mando del contactor de lnea permite efectuar la conexin y desconexin de la tensin de alimentacin a distancia.

Estados del Altistart 46


El grfico siguiente muestra los cuatro estados estables del arrancador.
Fallo rearmable auto Rearme auto EN FALLO REARMABLE AUTO

SIN FALLO (Funcionamiento normal)

Fallo rearmable bajo demanda Demanda de rearme EN FALLO REARMABLE BAJO DEMANDA Fallo no rearmable Fallo no rearmable Reinicializacin producto EN FALLO NO REARMABLE

1 - SIN FALLO: en este estado el rel de seguridad est enclavado. 2 - EN FALLO REARMABLE AUTO: este estado es consecuencia de un fallo susceptible de desaparecer sin intervencin (Ausencia de alimentacin + RUN) o de ensayos sucesivos (fallo de fase, frecuencia). Este estado tan solo se toma en cuenta si la palabra W4035,ARS ha sido configurada a 1. Si R1 est configurado como rel de fallo: este tipo de fallo no provoca la apertura del mismo. Si R1 est configurado como rel de aislamiento: este tipo de fallo provoca la apertura del mismo. 3 - EN FALLO REARMABLE BAJO DEMANDA: este estado se alcanza desde la aparicin de un fallo que necesite una verificacin si el producto est configurado en rearme auto (W4035,1 = 1) o bien desde la aparicin de un fallo rearmable si la configuracin est en rearme manual (W4035,1 = 0). 4 - EN FALLO NO REARMABLE: este estado se alcanza desde la aparicin de un fallo grave que necesite una intervencin (cortocircuito, fallo interno o inversin de fases). En este caso la reinicializacin del producto se obtiene cortando la alimentacin de control. E S P A O L

123

Principio de la comunicacin
Estructura de los datos
El ajuste, el mando, el control y la vigilancia del Altistart 46 se efecta por medio de datos (u objetos) los cuales son propios de este producto. Estos son de dos tipos: BITS: denominados Bi (i = nmero del bit) los cuales son usados para ejecutar comandos lgicos.Ejemplo: B1 = Rearme del arrancador (demanda de rearme en lnea) PALABRAS (de 16 bits): denominados Wi (i = nmero de la palabra) que sern utilizados para memorizar, bien valores numricos enteros sin signo ((0 a 65535), bien 16 estados lgicos independientes llamados entonces registros (0 a 9 y despus A a F). Ejemplo: W4028 = Nivel de boost (valor numrico) W4061 = Registro de estado del arrancador (16 bits de estado) Nota: W4061,2 indica el bit de rango 2 del registro 4061.

IMPORTANTE :
Algunos autmatas programables no utilizan la palabra 0 en protocolo MODBUS. En este caso es necesario incrementar todas las direcciones de 1. Ejemplo : W4028 se convierte en W4029.

Acceso a los datos


Las tablas que siguen facilitan la lista de los parmetros accesibles para la comunicacin. La funcin precisa de cada parmetro as como su influencia sobre el comportamiento del arrancador se describe en la gua de explotacin del adicional visualizacin con referencia VD0C32Q302. Ciertos datos son accesibles tanto en escritura como en lectura: estos son los bits y las palabras correspondientes a ajustes, configuraciones o comandos. Estos datos son utilizados por el arrancador. Los datos elaborados por el arrancador no son accesibles ms que en lectura: informaciones de sealizacin, de fallo; su escritura no tiene sentido y es rechazada.

Unidades
Las palabras se expresan siempre en valores numricos enteros sin signo (0 a 65535), cuya unidad se precisa para cada una de ellas. Ejemplo: W4037 = Par inicial, unidad en % de Mn (Ex: 50 = 50 % Mn) W4033 = Arranque demasiado largo en segundos E S P A O L

Campos
El arrancador especifica para cada uno de los parmetros el rango admisible de stos. 0* significa que el valor 0 se utiliza para poner la funcin fuera de servicio Ejemplo: W4036 = 0 no hay lmite mx. de par, campo de ajuste de 10 a 200 (en % de Mn)

Valores a la puesta bajo tensin


En el momento de cada puesta bajo tensin el Altistart 46 es inicializado siempre con la configuracin y los ajustes memorizados en su memoria EEPROM (en LINEA, memorizacin de los ajustes con W4060,E o vuelta a los ajustes de fbrica con W4060,D). El arrancador es colocado sistemticamente en mando LOCAL (rdenes presentadas a travs del bornero). Para pilotarlo a partir de un bus multipunto es necesario asignar sus comandos en LINEA: escritura de la palabra W4060 colocando a 1 el bit 1.

124

Principio de la comunicacin
Gestin LOCAL / LINEA
Un arrancador ATS46 puede funcionar segn dos modos de comandos Funcionamiento en LOCAL a partir de una seal (de 2 3 hilos) en el bornero . Funcionamiento en LINEA a partir de un PC o un autmata. Estos modos de funcionamiento no son efectivos ms que para el acceso a los parmetros de comando. Son indiferentes para los parmetros de configuracin, ajuste y vigilancia. Parmetros influyentes Bit de comando B2 (DLI) Bit de la palabra de comando W4060,1 (DLI) : Asignacin de los comandos en LINEA/LOCAL. : Asignacin de los comandos en LINEA/LOCAL.

Bit de comando B4 (NTO) : Supresin del control de la lnea (fallo SLF). Bit de la palabra de comando W4060,4 (NTO) : Idem. Palabra de configuracin W4022 (LI) Palabra de configuracin W4029 (STY) : Asignacin del LI al forzado local. : Seleccin del tipo de parada va LI_STOP.

Bit de la palabra de sealizacin W4061,0 (LOC) : En modo local = 1, en modo en lnea= 0. Bit de la palabra de sealizacin W4061,5 (FLO) : En forzado local = 1, sin forzado local = 0. Bit de la palabra de sealizacin W4066,0 (LIO) : Estado de LI (0 = bajo, 1 = alto). Funcionamiento En modo en LINEA: la lnea tiene acceso en escritura a los comandos, slo LI_STOP est activa en el bornero y es prioritaria. Atencin: la activacin de LI en forzado local, prohibe toda escritura por la lnea. En modo LINEA, es necesario enviar regularmente mensajes al arrancador: un mensaje a cada 10 segundos como mnimo con UNI-TELWAY, MODBUS ASCII y MODBUS RTU y cada segundo en protocolo ASCII. La ausencia de recepcin de mensaje provoca un fallo del enlace serie del arrancador (SLF). El control de la comunicacin puede inhibirse colocando el bit NTO a 1, en cuyo caso el fallo SLF no aparecer nunca. En modo LOCAL: la lnea no tiene acceso en escritura a los comandos. Sobre el bornero, LI, LI_RUN y LI_STOP estn activos. El paso a modo en lnea es posible escribiendo un 1 el bit DLI (B2 o W4060,1). E S P A O L

Caso tpico de funcionamiento Una demanda o una desactivacin del forzado local provoca una parada segn STY: en comando a 2 hilos: ATS46 en modo lnea LI_RUN a 1, una demanda de forzado local provoca una parada segn la configuracin de STY. El rearranque es inmediato mediante LI_RUN. en comando a 3 hilos: Idem, pero el rearranque es inmediato en cuanto se libere LI_STOP y un impulso LI_RUN dado.

125

Variables del Altistart 46


Bits de comando (lectura y escritura)
Bit Nombre Descripcin B0 B1 RST DLI Comando de rearme del arrancador Asignacin de los comandos en LINEA/LOCAL Funcin Elimina un fallo corregible y rearme el rel de seguridad (= W4060,0) LINEA= 1, LOCAL = 0 El arrancador no puede ser mandado ms que a partir del enlace serie (bus o PC) de su bornero (= W4060,1) El arrancador dispara el fallo EtF (= W4060,2) El arrancador no dispara el fallo SLF si la opcin de comunicacin est en fallo NET (= W4060,4) 0 - inactivo; 1 - activo (= W4060,5) (= W4060,6) (= W4060,7) (= W4060,8)

B2 B3 B4

EXT NTO

Fallo externo Reservado Supresin del control de comunicacin Comando de marcha

B5 B6 B7 B8 B9

RUN CAF CAD CAL

Comando de parada frenada 0 - inactivo; 1 - activo Comando de parada decelerada 0 - inactivo; 1 - activo Comando de parada rueda libre 0 - inactivo; 1 - activo Reservado

Palabras de ajuste (lectura y escritura)


Direccin Nombre Campo W4036 W4037 W4038 W4039 W4040 E S P A O L W4041 W4042 W4043 W4044 W4045 W4046 W4047 TLI TQ0 EDC ILT OIL BRC EBA ACC DEC IPR TPR GKI Unidad Descripcin Valores posibles 0 = off

0*, % de Mn Par mx. en aceleracin 10-200 0-100 0-100 % de Mn Par inicial en aceleracin % de Mn Par final en deceleracin

150-700 % de IN Corriente de limitacin y <5.ICL 0*, 50-300 0-100 % de IN Umbral de corriente de disparo Intensidad de frenado 0 = off

20-100 % del tiempo Ajuste del tiempo de frenado pseudo de frenado continuo 1-60 1-60 0-100 0-99 20-50 s s Pendiente de la rampa de aceleracin Pendiente de la rampa de deceleracin

% de Icl Ajuste de la corriente de precalentamiento (1) mn _ Temporizacin antes del precalentamiento Ganancia de integracin en deceleracin

(1) No sobrepasar el valor recomendado por el fabricante del motor.


126

Variables del Altistart 46


Palabras de configuracin (lectura y escritura)
Direccin W4018-4019 W4020 W4021 W4022 Nombre VMA Campo Unidad Descripcin Reservado Enclavamiento del motor a la parada Reservado Asignacin de la entrada lgica LI Valores posibles ledo a 8000 H 0 - no enclavado 1 - enclavado en la parada ledo a 8000 H 0 - no asignada 1 - forzado rueda libre 2 - fallo externo 3 - precalentamiento motor 4 - forzado local (0=local, 1= lnea) 5 - forzado del arranque en cascada 6 - inhibicin de las protecciones 7 - rearme del defecto trmico del motor 8 - rearme fallo 0 - no asignada 1 - alarma trmica motor 2 - motor alimentado 0 1 2 3 4 5 no asignada corriente estado de carga estado trmico factor de potencia potencia activa motor

LI

0-7

W4023

LO1

0-2

Asignacin de la salida lgica LO1

W4024

AO

0-4

Asignacin de la salida analgica AO

W4025 W4026 W4027 W4028 W4029

ASC IN LSC BST STY

50-500 (0,5-1,3)ICL 0-80

Escala salida analgica Corriente nominal del motor en funcin de la corriente de consigna arrancador % prdidas Compensacin prdidas esttor 0 - rueda libre 1 - deceleracin 2 - frenado 0 - off 1 - sentido giro directo 2 - sentido giro inverso

% 0,1 A

0*, 50-100 % tensin Nivel de boost 0-2 Seleccin tipo de parada va la entrada lgica LI_STOP 0-2 Asignacin fallo rotacin de fase

W4030

PHR

W4031 W4032 W4033 W4034

ULL TBS TLS THP

0*, 20-100 % de Mn (0-999) s 0*, 10-999 segundos 0-7

W4035

CNF CLP ARS R1 LO2 AO1

Umbral de disparo (bajo carga) Asignacin de la temporizacin antes del arranque Tiempo de arranque demasiado largo Proteccin trmica del motor 0 - proteccin inhibida 1 - sub clase 2 2 - clase 10A 3 - clase 10 4 - sub clase 15 5 - clase 20 6 - sub clase 25 7 - clase 30 Registro de configuracin bit 0 : seleccin bucle cerrado, bucle 0 - bucle abierto abierto 1 - bucle cerrado bit 1 : Rearme automtico 0 - rearme manual 1 - rearme automtico bit 2 : Asignacin del rel R1 0 - rel de fallo 1 - rel de aislamiento bit 3 : Asignacin de la salida lgica 0 - no asignada LO2 1 - alarma umbral de corriente bit 4 : Campo de la salida analgica 0 - 0-20 mA 1 - 4-20 mA

E S P A O L

0* : Funcin en OFF

127

Variables del Altistart 46


Palabras de configuracin (lectura y escritura)
Direccin W4035 Nombre SST CSc Campo Unidad Descripcin bit 5 : Seleccin de un funcionamiento de prueba en motor de poca potencia bit 6 : Configuracin del motor en cascada bit 7-F : reservado Valores posibles 0 - no asignada 1 - funcin de prueba 0 - inactivo 1 - activo

Palabras de comando (lectura y escritura)


Direccin W4060 Nombre CMD RST DLI EXT DMC NTO RUN CAF CAD CAL DCM Campo Unidad Descripcin Registro de comando bit 0 : Comando de rearme del arrancador bit 1 : Asignacin de los comandos en lnea bit 2 : Comando fallo externo bit 3 : Comando de deceleracin del motor en cascada bit 4 : Supresin del control de la lnea (fallo SLF) bit 5 : Comando de marcha bit 6 : Comando de parada frenada bit 7 : Comando de parada decelerada bit 8 : Comando de parada rueda libre bit 9 : Comando de precalentamiento del motor bit A : RAC estado trmico motor bit B : Inhibicin de las protecciones bit C : Puesta a cero del contador horario bit D : Recuperacin ajustes de fbrica bit E : Memorizacin ajustes en EEPROM bit F : Recuperacin ajustes en EEPROM 0 - inactivo 1 - activo en frente positivo (1) 0 - inactivo 1 - activo en frente positivo (1) 0 - inactivo 1 - activo en frente positivo (1) 0 - inactivo 1 - activo (2) 0 - inactivo 1 - activo 0 - inactivo 1 - activo 0 - inactivo 1 - activo 0 - inactivo 1 - activo 0 - inactivo 1 - activo 0 - inactivo 1 - activo 0 - inactivo 1 - activo 0 - local 1 - lnea 0 - inactivo 1 - activo en frente positivo (1) Valores posibles

E S P A O L

RTH INH TRE INT MRE RRE

(1) significa que el bit vuelve a 0 despus de la accin. (2) vuelve automticamente a 0 si no aparece ningn otro frente positivo durante 10 segundos. Sin forzado local, la escritura se toma en cuenta segn las condiciones siguientes: si DLI = 1, los bits RST, EFL, RUN, CAF, CAD, CAL, DCM, RTH se toman en cuenta, los otros bits son independientes de DLI (NTO, TRE, INT, MRE, RRE).

128

Variables del Altistart 46


Palabras de sealizacin (slo lectura)
Direccin W4061 Nombre ETA LOC RDY FAI Campo Unidad Descripcin Registro de estado del arrancador bit 0 : En modo local/lnea bit 1 : Arrancador listo bit 2 : Arrancador en fallo bit 3 : En parada solicitada por bornero HEA FLO NTO bit 4 : Calentamiento del motor bit 5 : En forzado local bit 6 : Control de la comunicacin suprimido bit 7 : Alarma por umbral de corriente SST bit 8 : En rgimen permanente bit 9 : En rgimen cortocircuitado (by-pass) bit A : En fase de parada bit B : En fase de aceleracin OVL LIM NLP bit C : Alarma trmica del motor bit D : Limitacin de corriente bit E : Ausencia de red bit F : Frecuencia de la red W4062 W4063 W4064 W4065 LCR LTR LTH PHE 0 a 999 1-255 1-250 0-2 A/10 Corriente 0 - local 1 - lnea 0 - falso 1 - verdadero 0 - funcionamiento normal 1 - en fallo 0 - falso 1 - verdadero 0 - falso 1 - verdadero 0 - falso 1 - verdadero 0 - falso 1 - verdadero 0 - falso 1 - verdadero 0 - falso 1 - verdadero 0 - falso 1 - verdadero 0 - falso 1 - verdadero 0 - falso 1 - verdadero 0 - falso 1 - verdadero 0 - falso 1 - verdadero 0 - falso 1 - verdadero 0 - 50 Hz 1 - 60 Hz Valores posibles

% de Mn (1) Par % Estado trmico del motor Estado rotacin de fase 0 - off 1 - sentido de giro directo 2 - sentido de giro inverso 0 - bajo 1 - alto 0 - bajo 1 - alto 0 - bajo 1 - alto 0 - abierto 1 - cerrado

E S P A O L

W4066

LIO

Estado de las entradas/salidas lgicas bit 0 : Entrada lgica LI bit 1 : Salida lgica LO1 bit 2 : Salida lgica LO2 bit 3 : Rel R1

(1) Mn : Par nominal

129

del Altistart 46
Palabras de sealizacin (slo lectura)
Direccin W4066 Nombre Campo Unidad Descripcin bit 4 : Rel R2 bit 5 : Vigitrmico bit 6 : Entrada lgica LI_RUN bit 7 : Entrada lgica LI_STOP bit 8 : Interruptor de servicio bit 9-F : Reservado W4067 W4068 W4069 COS TFR DFT 1-100 (0-65535) % hora Cos Contador horario Registro de fallo bit 0 : Reservado para JC08 INF OCF PIF bit 1 : Fallo interno bit 2 : Corto circuito bit 3 : Inversin de las fases bit 4 : Reservado SLF ETF STF USF PHF OHF LRF OLF bit 5 : Fallo de comunicacin lnea bit 6 : Fallo externo bit 7 : Arranque demasiado largo bit 8 : Ausencia de red y demanda de marcha bit 9 : fallo de fase bit A : Fallo trmico del arrancador bit B : Rotor bloqueado rgimen permanente bit C : Sobrecarga trmica motor bit D : Incoherencia frecuencia red bit E : Reservado ULF W4070 W4071 SAO bit F : Subfracarga Valor salida anlgica AO Bit 0 : alarma temporizacin antes del arranque (TBS) Bit 1 : estado de inhibicin de las protecciones W4072 W4090 W4091 W4092 LPR PTR DFT 0-255 % Potencia activa motor Orden del defecto Copia des registro de defecto Copia des contador de hora (W4068) 0 - inactivo 1 - activo 0 - inactivo 1 - activo Valores posibles 0 - abierto 1 - cerrado 0 - Exceso de T 1 - cerrado 0 - bajo 1 - alto 0 - bajo 1 - alto 0 - estndar 1 - grave

E S P A O L

FRF

130

Peticiones UNI-TELWAY
Lista de peticiones
La tabla que sigue precisa las peticiones aceptadas por el Altistart 46 y su lmite de utilizacin. El detalle de codificacin de las peticiones se da en el manual de referencia UNI-TELWAY.

Peticin Identificacin Versin protocolo Status Espejo Lectura contadores de errores RAC contadores Lectura de un bit Escritura de un bit Lectura de una palabra Escritura de una palabra Lectura de objetos Escritura de objetos Datos emitidos por incidencia

Cdigo (hexa) H0F H30' H31' HFA HA2' HA4' H00' H10' H04' H'14' H36' H37'

Altistart 46 S S S S S S S S S S 63 palabras max.* 60 palabras max. S 2 palabras

* Slo se utilizan 27 palabras para el Altistart 46

Peticin de identificacin
Cdigo respuesta Tipo producto Sub tipo Versin producto Cadena ASCII* = H'3F' = H'16' para Altistart = H'46' Altistart 46 = H'XX' versin software (ej: H'21' para V2.1) = smbolo del producto (ej: ATS-46D17N)

* El primer octeto de una cadena ASCII corresponde siempre a la longitud de la cadena.

Peticin de status
Cdigo respuesta Estado en curso = H'61' = H'XX' bit 0 : fallo interno bit 1 : fallos rearmables bit 2 : fallos no rearmables bit 3 : no significativo bit 4 : no significativo bit 5 : no significativo bit 6 : arrancador parado (RDY o SLC o fallo) bit 7 : arrancador por comando LOCAL = H'C7' indica los bits significativos del estado en curso

E S P A O L

Mscara de estado

131

Peticiones UNI-TELWAY
Peticiones de lectura y escritura de objetos
Estas peticiones permiten acceder a varias palabras dentro de los lmites especificados en la pgina precedente. La codificacin de estas peticiones puede efectuarse especificando: Cdigo pregunta (TXTi,C) Categora Segmento Tipo de objeto = H36' (lectura) o H37' (escritura) = 0...7 = H68' (palabra interna) = H06' para octeto (8 bits) en lectura o H07' para palabra (16 bits) en lectura y en escritura = Hxxxx

Direccin del objeto Etc... Las palabras reservadas o inutilizadas son ledas a 0 y su escritura queda sin efecto. La respuesta a la peticin "escritura de objetos" se acepta siempre que al menos est escrita una palabra. Ejemplo: programacin sobre autmata TSX7 con utilizacin de bloque de texto. LECTURA de las palabras W4022 a W4025 del Altistart 46. Utilizando el tipo de objeto palabra= H07' Bloque de texto en emisin Bloque de texto en recepcin TxTi,C = H0736' (categora + peticin) TxTi,V = H66' (informe) TxTi,L = 6 TxTi,S = 9 (9 octetos recibidos) + tabla de emisin + tabla de recepcin Segmento de palabra interna Tipo de palabra
W4023 (p. dbil) H'07' 4023 4 W4026 (p. fuerte) H'68' H'07'

W4024 (p. dbil) W4023 (p. fuerte) W4025 (p. dbil) W4024 (p. fuerte) W4026 (p. dbil) W4025 (p. fuerte)

4 palabras a leer E S P A O L Nmero de la primera palabra Los datos recibidos en la tabla de recepcin estn desplazados un octeto. Corresponde al programa de aplicacin el efectuar una cuadratura (por ejemplo, mediante desplazamientos sucesivos) antes de utilizarlos.

132

Peticiones UNI-TELWAY
Utilizando el tipo objeto octeto= H'06' Bloque texto en emisin Bloque texto en recepcin TxTi,C = H'0736' (categora + requisito) TxTi,V = H'66' (informe) TxTi,L = 6 TxTi,S = 10 (10 octetos recibidos) + tabla de emisin + tabla de recepcin Segmento palabra interna Tipo de octeto
W4022 (p. fort) W4023 H'06' 8045 9 H'68' W4024 W4025 W4026 H'06'

9 octetos a leer (peso fuerte de W4022 + 8 octetos constituyendo W4023 a W4026) Nmero del primer octeto (el peso fuerte del W4022 tiene por direccin 2 x 4022 + 1 = 8045)

Esta programacin permite obtener directamente una cuadratura correcta de las palabras en la tabla de recepcin.

Datos emitidos por incidencia


El Altistart 46 emite por propia iniciativa datos al maestro del enlace UNI-TELWAY sin haber recibido una pregunta previa. Estos datos son enviados por medio de la peticin "datos no solicitados" y no necesitan respuesta por parte del destinatario. Son emitidos en los dos casos siguientes: en el momento de la aparicin y desaparicin de fallo (frente ascendente o descendente del bit W4061,2 del registro de estado), cuando el arrancador est forzado en comando local por medio de su entrada lgica si sta ha estado asignada a esta funcin mediante la palabra W4022. Magnitud de los datos por incidencia: 2 palabras de 16 bits enviadas en este orden: Registro de estado ETA (palabra W4061), Registro de fallo DFT (palabra W4069). Recordatorios: El uso de los datos por incidencia con autmata TSX necesita: haber configurado correctamente el acoplador maestro de enlace UNI-TELWAY, vigilar regularmente los indicadores sealando los cambios de valor de stos, efectuar la adquisicin de datos mediante la peticin de lectura de los datos por incidencia

E S P A O L

133

Protocolo MODBUS / JBUS


Generalidades
El intercambio de datos entre sistemas informticos, autmatas programables y otros sistemas inteligentes debe efectuarse en un lenguaje comn. Este lenguaje debe ser lo ms simple posible y debe ser comprendido por cada interlocutor, y al menos cada intercambio debe poder ser controlado con el fin de asegurar la integridad de las transferencias. Las variables intercambiadas se insertan entonces en una trama compuesta generalmente de la forma siguiente:
Cabecera Direccin Peticin Datos Control Fin

Cada protocolo define la presencia, el formato, y el contenido de los diferentes grupos de variables que rodean la zona de datos. Esta estructuracin permite definir el comienzo de los mensajes, la longitud de los mismos, eventualmente el sistema al que son dirigidos los datos, el tipo de informacin demandada, las variables en s, un parmetro de control y un cdigo de fin que valide el conjunto del mensaje. Esta trama es diferente en su contenido y su forma para cada tipo de protocolo. En lo que sigue de este documento se reagrupan las funcionalidades MODBUS y JBUS bajo el trmino MODBUS.

Tramas MODBUS
Son utilizables dos modos de transmisin, emplendose en un sistema uno slo de ellos. Modo RTU La trama definida para el protocolo MODBUS no comporta ni octetos de cabecera de mensaje ni octetos de fin de mensaje. Su definicin es la siguiente:
Direccin Peticin Datos CRC16

Los datos son transmitidos en binario. CRC16: parmetro de control polinmico (comprobacin por redundancia cclica). La deteccin de fin de trama se realiza sobre un silencio 3 caracteres. E S P A O L Modo ASCII La trama est completa y se define de la forma siguiente:
Cabecera Direccin Peticin Datos LRC Fin: CR LF

cabecera= ":" (H3A'), los datos estn codificados en ASCII: cada octeto grupo de 8 est dividido en 2 cuartetos y cada cuarteto est codificado por un cdigo ASCII (0 aF), LRC: parmetro de control longitudinal (comprobacin por redundancia longitudinal), fin: "CR" "LF" (H0D' y H0A').

134

Protocolo MODBUS / JBUS


Principio
El protocolo MODBUS es un protocolo de dilogo que crea una estructura jerarquizada (un maestro y varios esclavos). El protocolo MODBUS permite interrogar desde el maestro, a uno o varios esclavos inteligentes. Un enlace multipunto une entre s al maestro con los esclavos. Entre maestros y esclavos son posibles dos tipos de dilogos: el maestro habla a un esclavo y espera su respuesta, el maestro habla a un conjunto de esclavos sin esperar respuesta (principio de la difusin general). El nmero del esclavo vara de 1 a 31 y el nmero 0 est reservado para la difusin.

Maestro

El maestro gestiona los intercambios poseyendo slo l la iniciativa. Este maestro reitera la pregunta en el momento de un intercambio errneo y decreta que el esclavo interrogado est ausente despus de una falta de respuesta en un tiempo determinado. Sobre la lnea no puede haber ms que un slo equipo emitiendo. Ningn esclavo puede por s mismo enviar un mensaje sin haber sido invitado.

Esclavo j Esclavo k

Esclavo i

Nota Ninguna comunicacin lateral (esto es de esclavo a esclavo) puede efectuarse directamente. Es necesario que el software de aplicacin del maestro haya sido concebido en consecuencia: interrogar a un esclavo y reenviar los datos recibidos al otro esclavo.

E S P A O L

135

Protocolo MODBUS / JBUS


Datos accesibles
El protocolo MODBUS permite intercambiar datos (bits y palabras) entre un maestro y esclavos y asegurar el control de los intercambios. Por consiguiente, en cada entidad de esclavo, se definen zonas de bits que sern ledas o escritas por el maestro. Un objeto de entrada solamente puede ser ledo. Un objeto de salida puede ser ledo o escrito.
Esclavo i

Maestro
Tabla emisin

Direccionado MODBUS

Esclavo j

Bits de entrada

Bits de salida

Programa usuario

Palabras de entrada

Tabla recepcin

Palabras de salida

E S P A O L

Esclavo k

Intercambios
El maestro, u rgano de supervisin, tiene la iniciativa de los intercambios. Este maestro va a dirigirse a un esclavo facilitndole cuatro tipos de informacin: direccin del esclavo, funcin demandada al esclavo, zona de datos (variable en funcin del requisito), control de intercambio. El maestro del enlace espera la respuesta del esclavo antes de emitir el mensaje siguiente, evitando as todo conflicto de la lnea. As, este autoriza un funcionamiento en half-duplex.

136

Protocolo MODBUS / JBUS


Control y vigilancia
Toda gestin de intercambios entre dos entidades que dialogan por enlace serie asncrono, incluye evidentemente respuestas excepcionales cuando aparecen fallos de intercambio. A un esclavo pueden llegarle diferentes mensajes incoherentes. En este caso este ltimo responder con su no comprensin al maestro el cual tomar o no la decisin de reiterar el intercambio.

Maestro

ATS 46

El maestro tiene acceso a un cierto nmero de informaciones almacenadas y gestionadas por el esclavo. El maestro accede a estos datos mediante cdigos de funciones particulares (modo diagnstico, lectura del contador de incidentes,).

Funciones MODBUS
Entre las funciones MODBUS se distingue: las funciones principales que permiten el intercambio de datos, las funciones complementarias para el diagnstico de los intercambios. En la tabla siguiente se indican las funciones gestionadas por la opcin comunicacin del Altistart 46, precisando adems los lmites. La definicin de las funciones "lectura" y "escritura" se entiende vista desde el maestro E S P A O L

Cdigo 01 02 03 04 05 06 08 11 16

Naturaleza de las funciones

Altistart 46 1 max. 1 max. 29 max. 29 max. S S S S 28 max.

Lectura de N bits de salida Lectura de N bits de entrada Lectura de N palabras de salida Lectura de N palabras de entrada Escritura de un bit de salida D Escritura de un palabra de salida D Diagnstico (ver detalles) Lectura contador de incidencias Escritura de N palabras de salida D

Las funciones anotadas con una D pueden utilizarse en difusin general. El mensaje emitido por el maestro deber entonces especificar un nmero de esclavo = 0. No habr nunca mensaje de respuesta devuelta.

137

Protocolo MODBUS / JBUS


Detalle de las funciones
Cdigo 01 : lectura de N bits de salida. Esta funcin permite a la lectura de bits de salida (bits que pueden ser escritos y ledos por el maestro en el esclavo). lectura de N bits de entrada. Igual que el prrafo anterior pero aplicada a los bits de entrada (bits que el maestro no puede ms que leer). lectura de N palabras de salida. Esta funcin permite la lectura de palabras de salida (palabras que pueden ser escritas y ledas por el maestro en el esclavo). lectura de N palabras de entrada. Igual que el prrafo anterior pero aplicada a las palabras de entrada ( palabras que el maestro no puede ms que leer). escritura de un bit de salida. Permite la puesta a 0 o a 1 de un bit de salida (slo accesibles en escritura). escritura de palabra de salida. Permite efectuar la escritura de una palabra de salida de 16 bits (slo accesibles en la escritura).

Cdigo 02 :

Cdigo 03 :

Cdigo 04 :

Cdigo 05 :

Cdigo 06 :

El cdigo de funcin de diagnstico 08 va siempre acompaado de un sub cdigo. Cdigo 08/00 : eco. Esta funcin demanda al esclavo interrogado que devuelva ntegramente el mensaje enviado por el maestro. Cdigo 08/01 : reinicializacin de la va. Esta funcin permite reinicializar la comunicacin de un esclavo y en particular de hacerle dejar el modo de slo escucha (LOM) mediante el envo de un dato H'0000 H'FF00. cambio del delimitador ASCII. En modo ASCII, los mensajes son delimitados por el carcter salto de lnea (LF = H0A). Esta funcin permite cambiar este caracter. paso a modo LOM. Esta funcin permite forzar a un esclavo a pasar a slo escucha (LOM). En este modo, el esclavo no procesa los mensajes que le son dirigidos y nunca emite respuesta con excepcin de la reinicializacin de la va.

Cdigo 08/03 : E S P A O L

Cdigo 08/04 :

Cdigo 08/0A : puesta a cero de los contadores. Esta funcin efecta la puesta a cero de todos los contadores de vigilancia de los intercambios de un esclavo. Cdigo 08/0B : nmero de mensajes correctos vistos en la lnea sin error CRC o suma de comprobacin (checksum). Esta funcin permite leer en el contador 16 bits (incrementado de 0 a HFFFF) lo cual totaliza los mensajes vistos en la lnea y procesados por el esclavo.

138

Protocolo MODBUS / JBUS


Cdigo 08/0C : nmero de mensajes recibidos con error de suma de comprobacin (checksum) (lectura de un contador de 16 bits). Cdigo 08/0D : nmero de respuesta de excepcin. Lectura de un contador de 16 bits que totaliza el nmero de mensajes de excepcin emitidos por un esclavo hacia el maestro (despus de una trama incorrecta). Cdigo 08/0E : nmero de mensajes dirigidos al esclavo salvo en difusin. Lectura de un contador de 16 bits que totaliza todos los mensajes dirigidos al esclavo cualquiera que sea su naturaleza. Cdigo 08/0F : nmero de mensajes de difusin recibidos. Lectura de un contador de 16 bits que totaliza todos los mensajes dirigidos al esclavo cualquiera que sea su naturaleza. lectura del nmero de respuesta NAQ. El valor ledo es siempre 0. lectura del nmero de respuestas del esclavo no dispuestas. El valor ledo es siempre 0. lectura del nmero de caracteres no procesados (errneos). lectura del contador de incidentes. un status (siempre nulo), un contador que se incrementa con cada mensaje recibido correcto (forma y contenido) destinado al esclavo, salvo para las respuestas de excepcin. escritura de N palabras de salida. Esta funcin permite al maestro escribir palabras de salida en el esclavo (palabras que pueden ser escritas o ledas).

Cdigo 08/10 : Cdigo 08/11 :

Cdigo 08/12 : Cdigo 11 :

Cdigo 16 :

E S P A O L

139

Protocolo MODBUS / JBUS


Detalle de las tramas (modo RTU)
Lectura de N bits : funcin 1 2 Pregunta
N esclavo 1 octeto 01 02 1 octeto N del 1er bit PF Pf 2 octetos Nmero de bits PF Pf 2 octetos CRC16 2 octetos

Respuesta
N esclavo 1 octeto 01 02 1 octeto Nmero de octetos ledos 1 octeto Valor -----------Valor CRC16 2 octetos

Ejemplo: lectura del bit B4 del esclavo 2 Pregunta Respuesta


02 02 02 01 01 01 0004 01 01 0001 00 01 BC38 51CC 900C

si B4 = 0 si B4 = 1

El bit B4 es siempre utilizable y puede leerse a 1 a 0.

Lectura de N palabras: funcin 3 4 Pregunta


N esclavo 1 octeto 03 04 1 octeto N de la 1 palabra PF Pf 2 octetos Nmero de palabras PF Pf 2 octetos CRC16 2 octetos

Respuesta E S P A O L
N esclavo 03 04 Nmero de Valor de la 1 palabra Valor de la CRC16 octetos ledos ------- ltima palabra PF Pf PF Pf 1 octeto 2 octetos 2 octetos 2 octetos

1 octeto 1 octeto

Ejemplo: lectura de las palabras W4023 a W4026 del esclavo 2 Pregunta Respuesta
02 02 04 04 0FB7 08 0004 xxxx 42C8
----------------------

xxxx

CRC16

Valor de W4023

Valor de W4026

140

Protocolo MODBUS / JBUS


Escritura de un bit de salida: funcin 5 Pregunta
N esclavo 1 octeto 05 1 octeto N del bit PF Pf 2 octetos Valor del bit 2 octetos CRC16 2 octetos

El campo "valor del bit" tiene dos valores posibles con exclusin de cualquier otro: bit a 0 = 0000 bit a 1 = FF00

Respuesta
N esclavo 1 octeto 05 1 octeto N del bit PF Pf 2 octetos Valor del bit 2 octetos CRC16 2 octetos

Ejemplo: escritura del valor 1 en el bit B2 del esclavo 2 Pregunta y respuesta


02 05 0002 FF00 2DC9

Escritura de una palabra de salida: funcin 6 Pregunta


N esclavo 1 octeto 06 1 octeto Nmero de la palabra Valor de la palabra CRC16 PF Pf PF Pf 2 octetos 2 octetos 2 octetos

Respuesta
N esclavo 1 octeto 06 1 octeto Nmero de la palabra Valor de la palabra CRC16 PF Pf PF Pf 2 octetos 2 octetos 2 octetos

Ejemplo: escritura del valor H'000D' = 13 en la palabra W4043 del esclavo 2 ( ACC = 13 s ) Pregunta y respuesta
02 06 0FCB 000D 3AD6

E S P A O L

141

Protocolo MODBUS / JBUS


Diagnstico: funcin 8 Pregunta y respuesta
N esclavo 1 octeto Sub cdigo 00 01 03 04 0A 0B 0C 0D 0E 0F 10 11 12 08 1 octeto Sub cdigo 2 octetos Datos 2 octetos CRC16 2 octetos Funcin ejecutada Eco Reinicializacin XX = nuevo delimitador Paso a modo LOM Reposicin a 0 contadores XXYY = valor contador XXYY = valor contador XXYY = valor contador XXYY = valor contador XXYY = valor contador Siempre ledo a 0 Siempre ledo a 0 XXYY = valor contador

Datos preguntas XX YY 00 00 XX 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Datos respuestas XX YY 00 00 XX 00 Sin respuesta 00 00 XX YY XX YY XX YY XX YY XX YY 00 00 00 00 XX YY

Lectura del contador de incidentes: funcin 11 ( H'0B' ) Pregunta


N 0B esclavo 1 octeto 1 octeto CRC16 2 octetos

Respuesta
N esclavo 1 octeto 0B 1 octeto 00 00 Valor contador PF Pf 2 octetos CRC16 2 octetos

2 octetos

E S P A O L

Escritura de N palabras de salida: funcin 16 (H'10' ) Pregunta


N 10 N de la 1 palabra Nmero Nmero Valor 1 palabra CRC16 ---esclavo PF Pf de palabras de octetos PF Pf 1 octeto 1 octeto 2 octetos 2 octetos 1 octeto 2 octetos 2 octetos

Respuesta
N 10 N de la 1 palabra esclavo PF Pf 1 octeto 1 octeto 2 octetos Nmero de palabras CRC16 PF Pf 2 octetos 2 octetos

Ejemplo: escritura de los valores 2 y 3 en las palabras W4043 y W4044 del esclavo 2 Pregunta
02 10 10 0FCB 0FCB 0002 0002 04 3311 0002 0003 1139

Respuesta 02

142

Protocolo MODBUS / JBUS


Respuesta de excepcin
Cuando un esclavo no puede ejecutar la demanda que se le dirige, devuelve una respuesta de excepcin. Formato de una respuesta de excepcin:
N esclavo 1 octeto Cdigo respuesta 1 octeto Cdigo error 1 octeto CRC16 2 octetos

Cdigo respuesta: cdigo funcin de la demanda + H80 (el bit de rango ms elevado es puesto a 1). Cdigo error: 1 = la funcin demandada no es reconocida por el esclavo. 2 = los nmeros (direcciones) de bits y palabras indicados en el momento de la demanda no existen en el esclavo. 3 = los valores de bits y palabras indicados en el momento de la demanda no estn permitidos en el esclavo. 4 = el esclavo ha comenzado a ejecutar la demanda, pero no puede continuar procesndola por completo.

Clculo del CRC16


El CRC16 se calcula en todos los octetos del mensaje aplicando el mtodo siguiente. Inicializar el CRC (registro de 16 bits) a HFFFF. Ejecutar desde el 1er octeto del mensaje hasta el ltimo: CRC XOR <octeto> > CRC Ejecutar 8 veces Desplazar el CRC un bit a la derecha Si el bit emitido = 1, ejecutar CRC XOR HA001> CRC Fin de la ejecucin Fin de la ejecucin El CRC obtenido ser emitido con los pesos pequeos primero y los grandes despus. XOR = OR exclusiva. E S P A O L

143

Protocolo MODBUS / JBUS


Modo ASCII
En este modo, la trama MODBUS posee la estructura siguiente: N esclavo Cdigo funcin
---------------------

Datos

LRC PF Pf

CR

LF

Informaciones idnticas al modo RTU, pero codificadas diferentemente Delimitadores: ":" = H3A, CR = H0D, LF = H0A. Informaciones: el campo informacin es anlogo a las tramas RTU, pero est codificado en caracteres ASCII. Cada octeto est separado en 2 cuartetos y cada uno de ellos est codificado por su equivalente en ASCII. Ejemplo: el octeto que contiene el nmero de esclavo 06 estar codificado por los 2 caracteres ASCII "0" y "6", esto es por H30' y H36'. LRC: suma hexadecimal mdulo 256 del contenido de la trama (sin los delimitadores) antes de la codificacin en ASCII, complementada a 2. El octeto obtenido se codifica a continuacin bajo la forma de 2 caracteres ASCII igual que precedentemente. Ejemplo: escritura del valor 1 en el bit B2 del esclavo 2 Pregunta y respuesta En hexadecimal

3A

30 32 30 35

30303032

46463030

4638

0D

0A

En ASCII : E S P A O L 02 05 0002 FF00 F8 CR LF

Clculo del LRC Suma de los octetos de la trama: H'02' + H'05' + H'00' + H'03' + H'FF' + H'00' = H'109' = 265 Suma mdulo 256 : H'09' = 9 Complemento a 2 de la suma mdulo 256 : H'100' - H'09' = 256 - 9 = 247 = H'F7'

144

Enlace serie Terminal Windows bajo PC


Generalidades
La opcin C1 puede dialogar con un PC por medio del software Terminal de WINDOWS. Este software, con la ayuda de peticiones en protocolo ASCII (Telemecanique) permite el acceso al conjunto de funcionalidades del producto. Atencin: Es necesario utilizar el cable PC para unir la opcin al micro-ordenador. Este software permite acceder tambin a la configuracin de la comunicacin sobre bus (ver pginas siguientes).

Definicin del enlace Terminal WINDOWS


Enlace de tipo maestro (PC) - esclavo (ATS46), asncrono 9600 bits/s. Formato: 1 bit de arranque, 8 bits de datos, 1 bit de paridad impar, 1 bit de parada. Nota: El formato y la velocidad son fijos. Configuracin: 1 - Entrada bajo Terminal de WINDOWS. 2 - Men Terminal: Configuracin; Emulacin del Terminal: TTY (Genrico)

3 - Men Terminal: Configuracin; Preferencias del Terminal: [Modo Terminal] [CR > CR/LF] nueva lnea en entrada eco local en salida 4 - Men Terminal Configuracin; Comunicaciones : . Velocidad de transmisin : . Bits de datos . Bits de parada . Paridad . Control de flujo . Puertos : : : : : 9600 8 1 Impar Ninguno COM1 (u otro si se utiliza) E S P A O L

Nota: Si la seleccin de la paridad hace bascular los bits de datos a 7, poner los bits de parada a 2, lo cual lo establece los bits de datos a 8 y a continuacin reponer los bits de parada a 1. Se aconseja memorizar la configuracin del terminal en un fichero . trm.

145

Enlace serie Terminal Windows bajo PC


Configuracin de la comunicacin bus a partir del Terminal bajo WINDOWS
Los parmetros de configuracin de opcin comunicacin pueden leerse con todos los protocolos. Su escritura no es posible ms que en protocolo ASCII (Telemecanique). La seleccin del protocolo ASCII se hace mediante un cable sin puente entre TER/ y los 5 V. Si TER/ est unido a 5 V, se pondr en servicio el protocolo que est configurado. Valores de parmetros de configuracin
Direccin W2290 Parmetro Direccin producto (ADR) Protocolo (PRO) Protocolo seleccionado Valores ASCII autorizados ADR 0 1 a 31 W2291 UNI-TELWAY MODBUS RTU MODBUS ASCII W2292 Velocidad (SPD) 2 3 4 5 2 3 4 5 6 7 8 W2293 Formato (FOR) 2 3 4 5 6 7 8 9 UTW MODBUS RTU MODBUS ASCII 2 2a5 2a9 NO valor PRO UTW reservado RTU ASC SPD 300 600 1200 2400 4800 9600 19200 FOR 8O1* 8E1 8N1 8N2 7O1 7E1 7O2 7E2 8O1 no modificable 2 7 300 bits/s 600 bits/s 1200 bits/s 2400 bits/s 4800 bits/s 9600 bits/s 19200 bits/s 2 Valor por defecto 0 direccin no configurada direccin estacin Observaciones

E S P A O L

* 8O1: (nmero de bits) - ( O: ODD [impar] - E: EVEN [par]) - (nmero de bit "parada") Ejemplo 8O1: 8 bits impares, 1 bit parada.

146

Enlace serie Terminal Windows bajo PC


Configuracin de la comunicacin a partir del Terminal bajo WINDOWS
Formato de los mensajes ASCII para el dilogo con el terminal PC (Maestro) pregunta: ATS46 (Esclavo) respuesta: con: {datos} {fin} {CR LF} ?{Datos}{Fin} >{Datos}{CR LF}

datos de la pregunta o de la respuesta en caracteres ASCII uno o dos caracteres de fin CR o LF o CR LF o LF CR. (CR = Retorno de carro = H'OD'; LF = Salto de lnea = H'OA'). CR seguido de LF

Nota: a continuacin de ste captulo los caracteres de fin no se indican. Atencin: la opcin comunicacin no controla las teclas DEL o Suppr (tecla de supresin del ltimo caracter introducido). Si usted las utiliza, el eco de su mensaje puede parecer correcto en la pantalla, pero el mensaje ser rechazado. Si la pregunta o un valor pedido no son correctos, la respuesta ser: >N Lectura de la configuracin pregunta: ?CONF respuesta (caso de configuraciones de fbrica): >CONF:PRO:UTW ADR:NO SPD:9600 FOR:801 La configuracin leda ser: protocolo UNI-TELWAY, direccin no configurada, velocidad 9600 bits/s, formato 8 bits, paridad impar, un bit de parada. El significado de los parmetros de la respuesta se da en la columna "ASCII" de la tabla de la pgina 146. Modificacin de la configuracin Toda modificacin de la configuracin ser memorizada en la memoria del Altistart. En toda modificacin de la configuracin, el formato de la respuesta es idntico al de la configuracin. Los parmetros se dan en la tabla de la pgina 146. Los nemotcnicos se dan en la columna "ASCII" y los valores posibles segn el protocolo en la columna "valores autorizados". Los parmetros pueden ser modificados uno por uno. Ejemplos de pregunta: direccin 1 ?ADR = 1 protocolo UNI-TELWAY ?PRO = UTW velocidad 19200 bits/s ?SPD = 19200 formato 8 bits, paridad impar, 1 bit de parada ?FOR = 8O1 En un sola pregunta pueden modificarse varios parmetros. Ejemplo de preguntas: protocolo Modbus RTU, direccin 1, ?CONF=PRO=RTU ADR=1 SPD=4800 velocidad 4800 bits/s, FOR=8O1 formato 8 bits, sin paridad, 1 bit de parada. protocolo UNI-TELWAY, ?CONF=PRO=UTW SPD=19200 velocidad 19200 bits/s. (el formato est impuesto, la direccin no se modifica) Los parmetros no modificados quedan segn el valor precedente si este es correcto. N.B. : Escriba las preguntas en maysculas.
147

E S P A O L

Enlace serie Terminal Windows bajo PC

Modificacin de la configuracin mediante envo de fichero Es posible guardar la configuracin de la comunicacin en un fichero de texto preparado en editor de texto (tipo bloc de notas de Windows). Esto permite evitar el teclear varias veces la misma lnea de comandos. En el bloc de notas, teclear la configuracin que se desee enviar (por ejemplo ?CONF=PRO=UTW ADR=1 SPD=9600) y despus salvar el fichero. El fichero debe terminarse con un CR o un LF, por lo que hay que teclear Enter o Entrada al final de la lnea de configuracin. En el Terminal de Windows, en el men "Transferencias", utilizar el comando "Enviar un fichero de textos", y seleccionar el fichero salvado precedentemente. Este ser transmitido inmediatamente por el enlace serie y la respuesta de la opcin comunicacin se indicar en la pantalla.

Ayuda a la configuracin Es posible tener una ayuda sobre la nemotcnica empleada Pregunta de ayuda general: ?HELP Respuesta: ?HELP PRO ADR SPD FOR Pregunta de ayuda sobre un parmetro ?HELP PRO Respuesta: >HELP PRO : PRO=UTW o RTU, ASC

Informacin Para identificar el Altistart y la opcin que se utilice es posible enviar la pregunta siguiente: Pregunta de informacin: ?INFO Ejemplo de respuesta: >INFO:C1:V:1.0 IE01H TYPE:01H CS9B5AH ATS46D32 : V1.1 En este ejemplo, la opcin comunicacin C1 (=VWG46301) tiene una versin de software V1.0 IE01 (IE = ndice de evolucin) de tipo estndar y de la cual el programa tiene como suma de comprobacin (checksum) H'9B5A'. El Altistart es un ATS-46D32 con versin de software V1.1. Nota: la suma de comprobacin (checksum) dada en la respuesta no es el valor exacto para el software V1.0, sino que slo se indica para explicar el formato de la respuesta.

E S P A O L

148

Enlace serie ASCII


Definicin del protocolo
El dilogo es la forma pregunta / respuesta: El maestro hace una pregunta y espera la respuesta dentro de un cierto retardo (50 a 250 ms). En caso de error (error de paridad, de trama) el arrancador no responder. En este caso verificar que el conjunto de los parmetros del enlace es correcto as como el cable. Los mensajes estn delimitados por un caracter de arranque: ? para una pregunta, > para una respuesta y caracteres de fin: LF CR.

Pregunta Arranque ? Cdigo pregunta Ver tabla pgina 147 Datos 1 Nmero de la palabra o del bit Separador (*) 1 2 caracteres <SP> @ Datos 2 (*) Valor Fin o <LF> o <CR>

(*) nicamente para escritura Datos 1 : Nmero de la palabra o del bit: entero comprendido entre 0 y + 65535. El signo = es facultativo as como los ceros a la izquierda. Ejemplo: 55 +00055 Datos 2 : Valor de la palabra del bit : - Palabra: entero comprendido entre 0 y + 65535. El signo = es facultativo as como los ceros a la izquierda. Ejemplo: 55 +00055 -2345 -02345 - Bit : 0 1. Respuesta Arranque > Cdigo respuesta Ver tabla pgina 147 Datos 3(**) Valor Fin <LF> <CR> E S P A O L

(**) nicamente para lectura Datos 1 : - Palabra: 6 caracteres, formato fijo Ejemplos : +00034 - Bit : 0 1.

149

Enlace serie ASCII


Tabla de peticiones Cdigo pregunta Lectura bit Escritura bit Lectura palabra Escritura palabra Espejo Lectura de 10 palabras A B C D M E Cdigo respuesta Positiva Negativa A Y C Y M E N N N N N N

Caso de respuesta negativa: - Nmero de bit o palabra inexistente. - Cdigo de pregunta inexistente. - Formato de la pregunta incorrecto (pero con el primer caracter= ?). - Escritura cuando el arrancador no est en modo en LINEA. - Cambio de modo de funcionamiento cuando el motor no est en parada. - Cambio de modo de funcionamiento que no corresponde al diagrama. La peticin E permite leer o escribir 10 palabras consecutivas. Test de la comunicacin, espejo El requisito espejo devuelve la cadena de caracteres enviada y puede utilizarse para el test de la comunicacin. Pregunta: Respuesta: Lectura bit Bit de supresin del control de comunicacin: Lectura del bit B4 Pregunta: Respuesta: Respuesta: Escritura bit E S P A O L Paso a modo LINEA: escritura del valor 1 en el bit B2. Pregunta: Respuesta: ?B2<SP>1<LF><CR> >Y<LF><CR> ?A4<LF><CR> o ?A+00004<LF><CR> >A0<LF><CR> si bit = 0 (control activo) >A1<LF><CR> si bit = 1 (control inactivo) ?M12345<LF><CR> >M12345<LF><CR>

Lectura de palabra Valor de la salida lgica LO1: lectura de la palabra W4023. Pregunta: Respuesta : ?C4023<LF><CR> >C+00100<LF><CR> (Valor LO1 = 100%)

Escritura de palabra Consigna de par mximo a 100 % Mn: escritura de la palabra W4036. Pregunta: Respuesta: ?D4036<SP>100<LF><CR> >Y<LF><CR>

150

Diagnstico
Fallo
Para aceder al significado de los cdigos referirse a las pginas que indican las palabras de sealizacin.

Diagnstico complementario
Verificar el estado de los 2 pilotos situados en el panel frontal de la opcin: COM: piloto rojo; OK: piloto verde

COM OK

Interfaz de comunicacin

RS232/422/485

Estado de los pilotos: 0 = apagado 1/2 = parpadeando lento (500 ms) 1 = encendido 1/10 = parpadeando rpido (100 ms)

Piloto OK verde 1 0 0

Piloto COM rojo 0 0 1

Causas probables Funcionamiento normal, bus y producto presentes Fuera servicio, sin tensin Fallo de comunicacin en el bus

Acciones correctivas OK Verificar la interfaz o la opcin Verificar el bus de comunicacin y su conexin. Verificar los conmutadores de las tomas de abonados Verificar la configuracin de la comunicacin o el puente TER/- 5 V (ausente en protocolo ASCII/presente en protocolo bus) Configurar la comunicacin Verificar el conector de 6 contactos entre la opcin y el Altistart Verificar el conector de 6 contactos entre la opcin y el Altistart

1/10 * (6x)

Error de caracter

1/10 1/2

0 0

Opcin comunicacin no configurada Fallo comunicacin entre la opcin de comunicacin y el Altistart (cable del bus conectado a la opcin) Fallo de comunicacin entre la opcin de comunicacin y el Altistart (cable PC conectado a la opcin)

1/2

E S P A O L

* Esta representacin consiste en un parpadeo de una vibracin de 600 ms (3x encendido y 3x apagado) si se recibe un caracter errneo. Este parpadeo corto se repite despus de un perodo de 5 s de extincin si se recibe un caracter errneo. Esto no se produce ms que cuando la opcin comunicacin est en fallo (no se recibe mensaje despus de transcurrir 10 s de comunicacin bus o un segundo en protocolo ASCII). En el caso en que la opcin no pase nunca a funcionamiento normal, esta representacin indica que el cableado est realmente correcto (salvo quiz el puente TER/- 5 V) sino que la configuracin est inadaptada (velocidad o formato).
151

Indice por funcionalidades


Tipo: C : Comando: R : Ajuste: F : Configuracin; S : Sealizacin
Descripcin Vuelta a los ajustes de fbrica Bucle de control Arranque Tipo C F C R R R R F, F, F, F, S S S S S S C C C C C F R R R R S Protecciones motor C F, R F, R F F S Criterio Cdigo Direccin Pgina W4060, D W4035, 0 W4060, W4043 W4037 W4036 W4039 W4032 W4028 W4033 W4027 W4061, W4061, W4061, W4061, W4061, W4061, 5 128 127 128 126 126 126 126 127 127 127 127 129 129 129 129 129 129 127 128 128 128 128 127 126 126 126 126 129 128 127 127 127 128 129 126 127 129 129 129 129 130 129 130 128 130 128 128

Segn la posicin del conmutador en el producto CMD, INT (estndar/grave) Seleccin bucle cerrado (comando por par) bucle abierto (regulacin de tensin) Comando de marcha Pendiente de la rampa de aceleracin Par inicial en aceleracin Par max. en aceleracin Corriente de limitacin Asignacin de la temporizacin antes del arranque Nivel de boost Tiempo de arranque demasiados largo Compensacin prdidas del esttor Calentamiento del motor Arrancador listo En rgimen permanente En rgimen cortocircuitado(by-pass) En limitacin de corriente En fase de aceleracin CNF, CLP CMD, RUN ACC TQ0 TLI ILT TBS BST TLS LSC ETA, HEA ETA, RDY ETA, 8 ETA, 9 ETA, LIM ETA, B

R R R R

4 1 8 9 D B

Parada

Enclavamiento del motor en parada Comando de parada rueda libre Comando de parada decelerada Comando de parada frenada Comando de deceleracin del motor en cascada Seleccin tipo de parada (rueda libre, decelerada, frenada) va LI_STOP (bornero) - Si decelerada :pendiente de la rampa deceleracin del par final - Si frenada : intensidad de frenado ajuste del tiempo de frenado - En fase de parada RAC estado trmico Umbral de disparo (infracarga) Corriente nominal del motor Proteccin trmica del motor Inhibicin de las protecciones Estado trmico del motor

VMA W4020 CMD, CAL W4060, 8 CMD, CAD W4060, 7 CMD, CAF W4060, 6 DMC W4060, 3 STY W4029 DEC EDC BRC EBA ETA, A W4044 W4038 W4041 W4042 W4061, A

CMD, RTH W4060, A ULL W4031 In W4026 THP W4034 INH W4060, B LTH W4064 OIL PHR PHE ETA, E ETA, F LCR COS LTR TFR TRE LPR CNF, SST CSC W4040 W4030 W4065 W4061, E W4061, F W4062 W4067 W4063 W4068 W4060, C W4072 W4035, 5 W4035, 6

E S P A O L

Proteccin arrancador F, R Red de alimentacin F S S S S S S S S S F C

- Umbral de corriente de disparo Asignacin fallo rotacin de fase Estado rotacin de fase Ausencia de red Frecuencia de la red Corriente Cos Par Contador horario Puesta a cero del contador horario Potencia activa motor

Medidas

Funcionamientos particulares

- Pruebas sobre motores de poca potencia - Configuracin del motor en cascada

152

Indice por funcionalidades


Tipo: C : Comando: R : Ajuste: F : Configuracin; S : Sealizacin
Descripcin Gestin de las E/S Tipo F F F F F, R F F S S C C C F F F F S S S C C C F S S S S S S S S S S S S S S S S S S S C R R S S S Criterio Asignacin entrada lgica de LI Asignacin salida lgica LO1 Asignacin salida lgica LO2 Asignacin salida analgica AO Escala salida analgica Campo de la salida analgica Asignacin rels R1 Estado de las E/S Valor salida analgica AO Asignacin de los comandos en lnea Memorizacin de ajustes en EEPROM Recuerdo de los ajustes en EEPROM Direccin del producto Protocolo Velocidad de transmisin Formato de caracteres En modo local / lnea Parada pedida por el bornero En forzado local Comando fallo externo Comando de rearme del arrancador Supresin del control de la lnea Rearme automtico Arrancador en fallo Control de la comunicacin suprimido Alarma por umbral de corriente Alarma trmica del motor Fallo interno Fallo por cortocircuito Fallo por inversin de las fases Fallo por comunicacin de lnea Fallo externo Fallo por arranque demasiado largo Fallo ausencia red y peticin de marcha Fallo fase Fallo trmico arrancador Fallo rotor bloqueado en rgimen permanente Fallo sobrecarga trmica motor Fallo incoherencia frecuencia de la red Fallo por infracarga Alarma temporizacin antes del arranque Estado de inhibicin de las protecciones Cdigo LI LO1 CNF, LO2 AO ASC CNF, AO1 CNF, R1 LIO SAO CMD, DLI CMD, MRE CMD, RRE ADR PRO SPD FOR ETA, LOC ETA, 3 ETA, FLO CMD, EFL CMD, RST CMD, NTO CNF, ARS ETA, FAI ETA, NTO ETA, 7 ETA, OVL DFT, INF DFT, OCF DFT, PIF DFT, SLF DFT, ETF DFT, STF DFT, USF DFT, PHF DFT, OHF DFT, LRF DFT, OLF DFT, FRF DFT, ULF Direccin Pgina W4022 W4023 W4035 W4024 W4025 W4035, 4 W4035, 2 W4066 W4070 W4060, W4060, W4060, W2290 W2291 W2292 W2293 W4061, W4061, W4061, W4060, W4060, W4060, W4035, W4061, W4061 W4061, W4061, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4069, W4071, W4071, 1 E F 127 127 127 127 127 127 127 130 130 128 128 128 146 146 146 146 129 129 129 128 128 128 127 129 129 129 129 130 130 130 130 130 130 130 130 130 130 130 130 130 130 130 128 126 126 130 130 130

Gestin de la comunicacin y del bornero

0 3 5 2 0 4 1 2 7 C 1 2 3 5 6 7 8 9 A B C D F 0 1

Gestin de los fallos y alarmas

Precalentamiento del motor Historia de los defectos

- Comando de precalentamiento del motor - Ajust de la corriente de precalentamiento - Temporizacin antes del precalentamiento - Orden del defecto - Copia des registro de defecto - Copia des contador de hora

CMD, DCM W4060, 9 IPR W4045 TPR W4046 PTR DFT W4090 W4091 W4092

E S P A O L

153

72831

1998-09

VD0C32Q303

Das könnte Ihnen auch gefallen