
Page 16/27
© 2019 Datalogic S.r.l –All Rights Reserved
Cyclic communication between the PLC and the Datalogic Laser Marking System3.
A ProfiNet/IO network allows the PLC to monitor and command each device which is
connected: in order to do so, there needs to be a continuous flow of information
between the PLC and each device on the network. After every Update Time whole
memory areas are exchanged from the Laser Marker in one way (Laser Marker→PLC) and
in the other (PLC→Laser Marker) so to accomplish this behavior. In order to properly
command the Laser Marker and to give the PLC an appropriate feedback, all the
information must be entered in precise portions of these memory maps exchanged
periodically between the devices.
The memory area which is generated by the Laser Marker towards the PLC will be called
Input Assembly Memory Map, while the memory area generated by the PLC towards the
Laser Marker will be called Output Assembly Memory Map.
Once connection is established between the PLC and the Datalogic Laser Marker, most
certainly the PLC programmer will want to program the PLC so to command the Laser
System by giving it an automatic flow of commands: this process will include the
handling of a simple protocol handshake, regarding the use of different bits, both on
the Input and Output Assembly Memory Map:
-Command Bit: single bit (part of a group of bits) which are present on the Output
Assembly Memory Map and according to its position, it will represent the
command which the PLC wants the Laser Marker to execute.
-Mirroring Bit: single bit (part of a group of bits) which are present on the Input
Assembly Memory Map and according to its position, it will inform the PLC that
the requested command has been started (when HIGH) and that it has been
completed (when LOW) if the Handshake is followed.
In order to make sure that the command is fully executed by the laser, a simple
Handshake must be respected by the PLC programmer. Here are the 5 steps:
1. Check the State of the Laser System (address 0 and 1 of the Input Memory Map)
and that the protocol is still running correctly (address 2 and 3 must be ‘0’ in
DEC format): see the list of possible errors at paragraph 2.3.
2. Set the
Command Bit
0→1 (e.g. if the requested command is to Start Marking,
then the Command Bit is bit 0 at Address 0, which must now pass 0→1), and if
necessary also the Request Data field along with the Request Data size.
3. As soon as the Laser starts executing the command requested by the PLC, both
the
Mirroring Bit
and the
Command Executing
bit on the Input Memory Map pass
0→1.
Nearly all Command Bit have a matching Mirroring Bit: this means that whatever
command the PLC requests the laser to execute by setting a Command Bit 0→1, there
will nearly always be a dedicated Mirroring bit which informs the PLC about the stage
of the command execution.