The PLC of DL06 supports some easy to utilize instructions, which let strings of ASCII to be interpret into or written from the ports of communication when utilizing either the CPU port 2, or the port 2 of Module D0-DCM Data Communications.
Raw ASCII: Port 2 of CPU/DCM can be utilized for either writing or reading raw strings of ASCII.
Embedded ASCII: you can utilize the PLC of DL06 to place strings of ASCII embedded within a supported protocol through CPU/DCM Port with these instructions.
Receiving strings of ASCII
1. ASCII IN (AIN) - This command organizes Port 2 of CPU/DCM for raw strings of ASCII input, with parameters for example set and variable length strings of ASCII, byte swapping options, termination characters, and control bits of instruction. Use weigh scales barcode scanners, , etc., to write raw strings of ASCII input into Port 2 of CPU/DCM based on the parameters of AIN instruction.
2. Write embedded strings of ASCII straight to V-memory from an HMI external. The string of ASCII is sent out via Port 2 of CPU/DCM with any supported communications protocol. This technique applies the familiar instructions of RX/WX before available.
3. If the DL06 is applied as a network master, the RX (Network Read instruction) can be utilized to interpret embedded data of ASCII from a slave device network. Again, the string of ASCII would be sent out via Port 2 of CPU/DCM, with any supported protocol of communications.
Writing strings of ASCII
1. PRINTV (Print from V-memory) - utilize this instruction to write raw strings of ASCII out of port 2 of CPU/DCM to a panel of display, serial printer, etc. The instruction attributes the beginning address of V-memory, byte swapping options, string length, etc., the string is written to Port 2 of CPU/DCM when the permissive bit of instruction is enabled.
2. VPRINT (Print to V-memory) - apply this instruction to make pre-coded strings of ASCII in the PLC. The message is filled into a pre-defined address location of V-memory when the permissive bit of instruction is enabled. After that the instruction of PRINTV may be utilized to write the pre-coded string of ASCII out Port 2of CPU/DCM.
3. PRINT (Print Message) - This presented instruction can be applied to make pre-coded strings of ASCII in the PLC. The string is written to Port 2 of CPU/DCM when the permissive bit of instruction is enabled. The instruction combination of VPRINT/PRINTV is more flexible and greater than the instruction of PRINT.
4. The WX (Network Write) can be exercised to write embedded data of ASCII to an slave device or HMI directly from V-memory if the DL06 PLC is a master network.
More instructions of ASCII
• AFIND (ASCII Find) - Finds where a particular segment of the string of ASCII is placed in constant addresses of V-memory.
• AEX (ASCII Extract) - takes out a particular portion from the ASCII discover position or other recognized data location of ASCII.
• CMPV (Compare V-memory) - This teaching is applied to evaluate two Vmemory blocks addresses and is frequently utilized to identify a change in a string of ASCII.
• SWAPB (Swap Bytes) – exchanges bytes of V-memory on data of ASCII that was written straightforwardly to V-memory from an HMI external or related master device through a protocol of communications. The instructions of AIN and AEX have a integrated byte swap attribute. The option module of F0-CP128 is also offered for more general communications of ASCII.
DL06 Modbus RTU instructions
The port 2 of DL06 CPU/DCM supports instructions of Modbus Read/Write that make simpler setup. The instructions of MRX and MWX let you to utilize native addressing of Modbus, reducing the need for conversions of octal to decimal. Codes 05 and 06 function and the capability to interpret Slave Exception Codes have been included. These flexible instructions permit the user to choose the below parameters within one window of instruction:
• Modbus data type of 484, 584, or 984
• 0-247Slave node
• Code of Function
• Starting memory address of master/slave
• Bits Number
The DL06 has 4 alternative slots of module. You will require executing a calculation of power budget to decide whether the modules combination you choose will have enough power.
Power is given from two sources: the power supply internal base unit and an external supply. The AC powered of D0-06xx PLCs supply an inadequate amount of 24 VDC power. The output of 24 VDC can be utilized to external devices of power.
Initiate by deciding the power supplied by the base unit for power budgeting. All the PLCs of DL06 supply the same 5 VDC power amount. Only the units AC recommends 24 VDC supporting power. The 5 VDC power amount available depends on the 24 VDC power amounts being exploited, and the 24 VDC power amount offered depends on the 5 VDC power amount consumed.